[Bf-blender-cvs] [b05f841c3a5] geometry-nodes: Cleanup: Remove most of "#ifdef WITH_GEOMETRY_NODES"

Dalai Felinto noreply at git.blender.org
Wed Nov 18 02:02:39 CET 2020


Commit: b05f841c3a5f854f644cb77f1a81b6700e47687c
Author: Dalai Felinto
Date:   Wed Nov 18 01:53:37 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rBb05f841c3a5f854f644cb77f1a81b6700e47687c

Cleanup: Remove most of "#ifdef WITH_GEOMETRY_NODES"

The ones around the simulation datablock are still there, since they are not
needed for the features planned for master yet.

===================================================================

M	source/blender/makesrna/RNA_access.h
M	source/blender/makesrna/intern/rna_modifier.c
M	source/blender/modifiers/intern/MOD_nodes.cc

===================================================================

diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h
index bc25a404de8..f51202348b5 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -565,10 +565,8 @@ extern StructRNA RNA_ShrinkwrapModifier;
 extern StructRNA RNA_SimpleDeformModifier;
 extern StructRNA RNA_SimplifyGpencilModifier;
 extern StructRNA RNA_Simulation;
-#ifdef WITH_GEOMETRY_NODES
 extern StructRNA RNA_NodesModifier;
 extern StructRNA RNA_NodesModifierSettings;
-#endif
 extern StructRNA RNA_GeometryNode;
 extern StructRNA RNA_GeometryNodeTree;
 extern StructRNA RNA_SkinModifier;
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 5b21fdb9cec..cc0acb4b22d 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -6930,7 +6930,6 @@ static void rna_def_modifier_weightednormal(BlenderRNA *brna)
   RNA_define_lib_overridable(false);
 }
 
-#  ifdef WITH_GEOMETRY_NODES
 static void rna_def_modifier_nodes_settings(BlenderRNA *brna)
 {
   StructRNA *srna;
@@ -6969,7 +6968,6 @@ static void rna_def_modifier_nodes(BlenderRNA *brna)
 
   rna_def_modifier_nodes_settings(brna);
 }
-#  endif
 
 static void rna_def_modifier_mesh_to_volume(BlenderRNA *brna)
 {
@@ -7325,9 +7323,7 @@ void RNA_def_modifier(BlenderRNA *brna)
   rna_def_modifier_meshseqcache(brna);
   rna_def_modifier_surfacedeform(brna);
   rna_def_modifier_weightednormal(brna);
-#  ifdef WITH_GEOMETRY_NODES
   rna_def_modifier_nodes(brna);
-#  endif
   rna_def_modifier_mesh_to_volume(brna);
   rna_def_modifier_volume_displace(brna);
   rna_def_modifier_volume_to_mesh(brna);
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 1aa555ece5f..408a5b9063a 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -919,7 +919,6 @@ static void draw_property_for_socket(uiLayout *layout,
 
 static void panel_draw(const bContext *UNUSED(C), Panel *panel)
 {
-#ifdef WITH_GEOMETRY_NODES
   uiLayout *layout = panel->layout;
 
   PointerRNA *ptr = modifier_panel_get_property_pointers(panel, nullptr);
@@ -940,7 +939,6 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel)
   }
 
   modifier_panel_end(layout, ptr);
-#endif
 }
 
 static void panelRegister(ARegionType *region_type)
@@ -990,11 +988,7 @@ ModifierTypeInfo modifierType_Nodes = {
     /* name */ "Empty",
     /* structName */ "NodesModifierData",
     /* structSize */ sizeof(NodesModifierData),
-#ifdef WITH_GEOMETRY_NODES
     /* srna */ &RNA_NodesModifier,
-#else
-    /* srna */ &RNA_Modifier,
-#endif
     /* type */ eModifierTypeType_Constructive,
     /* flags */
     static_cast<ModifierTypeFlag>(eModifierTypeFlag_AcceptsMesh |



More information about the Bf-blender-cvs mailing list