Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_particle.py
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | elif isinstance(context.space_data.pin_id, bpy.types.ParticleSettings): | ||||
| return context.space_data.pin_id | return context.space_data.pin_id | ||||
| return None | return None | ||||
| class PARTICLE_MT_context_menu(Menu): | class PARTICLE_MT_context_menu(Menu): | ||||
| bl_label = "Particle Specials" | bl_label = "Particle Specials" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw(self, _context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| psys = context.particle_system | |||||
| experimental = context.preferences.experimental | |||||
| props = layout.operator( | props = layout.operator( | ||||
| "particle.copy_particle_systems", | "particle.copy_particle_systems", | ||||
| text="Copy Active to Selected Objects", | text="Copy Active to Selected Objects", | ||||
| icon='COPYDOWN', | icon='COPYDOWN', | ||||
| ) | ) | ||||
| props.use_active = True | props.use_active = True | ||||
| props.remove_target_particles = False | props.remove_target_particles = False | ||||
| props = layout.operator( | props = layout.operator( | ||||
| "particle.copy_particle_systems", | "particle.copy_particle_systems", | ||||
| text="Copy All to Selected Objects", | text="Copy All to Selected Objects", | ||||
| ) | ) | ||||
| props.use_active = False | props.use_active = False | ||||
| props.remove_target_particles = True | props.remove_target_particles = True | ||||
| if experimental.use_new_curves_type and psys.settings.type == 'HAIR': | |||||
| layout.operator( | |||||
| "curves.convert_from_particle_system", | |||||
| text="Convert to Curves") | |||||
| layout.separator() | layout.separator() | ||||
| layout.operator( | layout.operator( | ||||
| "particle.duplicate_particle_system", | "particle.duplicate_particle_system", | ||||
| icon='DUPLICATE', | icon='DUPLICATE', | ||||
| ) | ) | ||||
| ▲ Show 20 Lines • Show All 1,978 Lines • Show Last 20 Lines | |||||