Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-05-12 12:50:08 +0300
committerJacques Lucke <jacques@blender.org>2022-05-12 13:55:50 +0300
commit94a54ab5549b5a6b09cded3a5f59623d3b91dd95 (patch)
tree8fdb96d5fbb9452e88d60bd1cfe5ad971cce7ad1 /release
parent9757b4efb12e0fba21735fa7960148e6a7b67bb2 (diff)
Curves: add operator to convert hair particle system to new curves
This creates a new curves object with the name of the particle system. The generated curves match the current evaluated state of the active hair particle system. Attachment information is not transferred currently. Differential Revision: https://developer.blender.org/D14908
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_particle.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index 0b7a728fa95..3d6ad2ece9b 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -54,8 +54,10 @@ class PARTICLE_MT_context_menu(Menu):
bl_label = "Particle Specials"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
- def draw(self, _context):
+ def draw(self, context):
layout = self.layout
+ psys = context.particle_system
+ experimental = context.preferences.experimental
props = layout.operator(
"particle.copy_particle_systems",
@@ -72,6 +74,11 @@ class PARTICLE_MT_context_menu(Menu):
props.use_active = False
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.operator(