diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-25 22:01:57 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-25 22:01:57 +0300 |
commit | 13abacaaf342b3cff9b29e92f346bee2e5b6e6c4 (patch) | |
tree | 03e570c9fd02928c02a20ad35bdf4e54ab6e26ac | |
parent | 14326619a1a94af677c2d1d626b57d7ff2afbd21 (diff) |
Particles: show which nodes are only mockups in the Add menu
More nodes will be implemented step by step. I don't remove/disable these nodes,
so that it is still possible to add them.
-rw-r--r-- | release/scripts/startup/nodeitems_builtins.py | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/release/scripts/startup/nodeitems_builtins.py b/release/scripts/startup/nodeitems_builtins.py index 60eb0194a9a..56a3cd17948 100644 --- a/release/scripts/startup/nodeitems_builtins.py +++ b/release/scripts/startup/nodeitems_builtins.py @@ -475,49 +475,55 @@ texture_node_categories = [ ]), ] +def not_implemented_node(idname): + NodeType = getattr(bpy.types, idname) + name = NodeType.bl_rna.name + label = f"{name} (mockup)" + return NodeItem(idname, label=label) + simulation_node_categories = [ # Simulation Nodes SimulationNodeCategory("SIM_OUTPUT", "Output", items=[ NodeItem("SimulationNodeParticleSimulation"), ]), SimulationNodeCategory("SIM_INPUTS", "Input", items=[ - NodeItem("SimulationNodeTime"), - NodeItem("SimulationNodeParticleAttribute"), + not_implemented_node("SimulationNodeTime"), + not_implemented_node("SimulationNodeParticleAttribute"), NodeItem("FunctionNodeGroupInstanceID"), NodeItem("ShaderNodeValue"), NodeItem("FunctionNodeObjectTransforms"), ]), SimulationNodeCategory("SIM_EMITTERS", "Emitters", items=[ NodeItem("SimulationNodeParticleMeshEmitter"), - NodeItem("SimulationNodeEmitParticles"), + not_implemented_node("SimulationNodeEmitParticles"), ]), SimulationNodeCategory("SIM_EVENTS", "Events", items=[ - NodeItem("SimulationNodeParticleBirthEvent"), - NodeItem("SimulationNodeParticleTimeStepEvent"), - NodeItem("SimulationNodeParticleMeshCollisionEvent"), + not_implemented_node("SimulationNodeParticleBirthEvent"), + not_implemented_node("SimulationNodeParticleTimeStepEvent"), + not_implemented_node("SimulationNodeParticleMeshCollisionEvent"), ]), SimulationNodeCategory("SIM_FORCES", "Forces", items=[ NodeItem("SimulationNodeForce"), ]), SimulationNodeCategory("SIM_EXECUTE", "Execute", items=[ - NodeItem("SimulationNodeSetParticleAttribute"), - NodeItem("SimulationNodeExecuteCondition"), - NodeItem("SimulationNodeMultiExecute"), + not_implemented_node("SimulationNodeSetParticleAttribute"), + not_implemented_node("SimulationNodeExecuteCondition"), + not_implemented_node("SimulationNodeMultiExecute"), ]), SimulationNodeCategory("SIM_NOISE", "Noise", items=[ - NodeItem("ShaderNodeTexNoise"), - NodeItem("ShaderNodeTexWhiteNoise"), + not_implemented_node("ShaderNodeTexNoise"), + not_implemented_node("ShaderNodeTexWhiteNoise"), ]), SimulationNodeCategory("SIM_COLOR", "Color", items=[ - NodeItem("ShaderNodeMixRGB"), - NodeItem("ShaderNodeInvert"), - NodeItem("ShaderNodeHueSaturation"), - NodeItem("ShaderNodeGamma"), - NodeItem("ShaderNodeBrightContrast"), + not_implemented_node("ShaderNodeMixRGB"), + not_implemented_node("ShaderNodeInvert"), + not_implemented_node("ShaderNodeHueSaturation"), + not_implemented_node("ShaderNodeGamma"), + not_implemented_node("ShaderNodeBrightContrast"), ]), SimulationNodeCategory("SIM_CONVERTER", "Converter", items=[ NodeItem("ShaderNodeMapRange"), - NodeItem("ShaderNodeClamp"), + not_implemented_node("ShaderNodeClamp"), NodeItem("ShaderNodeMath"), NodeItem("ShaderNodeValToRGB"), NodeItem("ShaderNodeVectorMath"), @@ -525,11 +531,11 @@ simulation_node_categories = [ NodeItem("ShaderNodeCombineRGB"), NodeItem("ShaderNodeSeparateXYZ"), NodeItem("ShaderNodeCombineXYZ"), - NodeItem("ShaderNodeSeparateHSV"), - NodeItem("ShaderNodeCombineHSV"), + not_implemented_node("ShaderNodeSeparateHSV"), + not_implemented_node("ShaderNodeCombineHSV"), NodeItem("FunctionNodeBooleanMath"), NodeItem("FunctionNodeFloatCompare"), - NodeItem("FunctionNodeSwitch"), + not_implemented_node("FunctionNodeSwitch"), NodeItem("FunctionNodeCombineStrings"), ]), SimulationNodeCategory("SIM_GROUP", "Group", items=node_group_items), |