Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_particle.py
| Show First 20 Lines • Show All 1,648 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.enabled = part.use_clump_noise | layout.enabled = part.use_clump_noise | ||||
| layout.prop(part, "clump_noise_size") | layout.prop(part, "clump_noise_size") | ||||
| class PARTICLE_PT_children_roughness(ParticleButtonsPanel, Panel): | class PARTICLE_PT_children_roughness(ParticleButtonsPanel, Panel): | ||||
| bl_label = "Roughness" | bl_label = "Roughness" | ||||
| bl_translation_context = i18n_contexts.id_particlesettings | |||||
| bl_parent_id = "PARTICLE_PT_children" | bl_parent_id = "PARTICLE_PT_children" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| part = particle_get_settings(context) | part = particle_get_settings(context) | ||||
| return part.child_type != 'NONE' | return part.child_type != 'NONE' | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| part = particle_get_settings(context) | part = particle_get_settings(context) | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(part, "use_roughness_curve") | col.prop(part, "use_roughness_curve") | ||||
| if part.use_roughness_curve: | if part.use_roughness_curve: | ||||
| sub = col.column() | sub = col.column() | ||||
| sub.template_curve_mapping(part, "roughness_curve") | sub.template_curve_mapping(part, "roughness_curve") | ||||
| sub.prop(part, "roughness_1", text="Roughness") | sub.prop(part, "roughness_1", text=iface_("Roughness", i18n_contexts.id_particlesettings)) | ||||
| sub.prop(part, "roughness_1_size", text="Size") | sub.prop(part, "roughness_1_size", text="Size") | ||||
| else: | else: | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.prop(part, "roughness_1", text="Uniform") | sub.prop(part, "roughness_1", text="Uniform") | ||||
| sub.prop(part, "roughness_1_size", text="Size") | sub.prop(part, "roughness_1_size", text="Size") | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.prop(part, "roughness_endpoint", text="Endpoint") | sub.prop(part, "roughness_endpoint", text="Endpoint") | ||||
| ▲ Show 20 Lines • Show All 378 Lines • Show Last 20 Lines | |||||