[Bf-blender-cvs] [03c81a4fff4] master: Cleanup: Remove dead code

Sergey Sharybin noreply at git.blender.org
Fri Apr 19 15:41:35 CEST 2019


Commit: 03c81a4fff46f0d9bba4691916446b752e1bb9f5
Author: Sergey Sharybin
Date:   Fri Apr 19 15:36:18 2019 +0200
Branches: master
https://developer.blender.org/rB03c81a4fff46f0d9bba4691916446b752e1bb9f5

Cleanup: Remove dead code

There is no more sorting happening, so the comment is out of date
by manu reasons. If something extra is needed there it would need
to be done differently anyway.

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

M	source/blender/makesrna/intern/rna_object_force.c

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

diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 4cafa42c9fc..393e6d90ec6 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -532,15 +532,6 @@ static void rna_FieldSettings_dependency_update(Main *bmain, Scene *scene, Point
   else {
     Object *ob = (Object *)ptr->id.data;
 
-    /* do this before scene sort, that one checks for CU_PATH */
-#  if 0 /* XXX */
-    if (ob->type == OB_CURVE && ob->pd->forcefield == PFIELD_GUIDE) {
-      Curve *cu = ob->data;
-      cu->flag |= (CU_PATH | CU_3D);
-      do_curvebuts(B_CU3D); /* all curves too */
-    }
-#  endif
-
     rna_FieldSettings_shape_update(bmain, scene, ptr);
 
     DEG_relations_tag_update(bmain);



More information about the Bf-blender-cvs mailing list