[Bf-blender-cvs] [75a9ba558e0] soc-2020-outliner: Cleanup: Use psys function

Nathan Craddock noreply at git.blender.org
Sun Jun 21 01:02:08 CEST 2020


Commit: 75a9ba558e0d22586e9cf36f9dab0975f82f18a0
Author: Nathan Craddock
Date:   Sat Jun 20 17:01:44 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB75a9ba558e0d22586e9cf36f9dab0975f82f18a0

Cleanup: Use psys function

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

M	source/blender/editors/space_outliner/outliner_draw.c

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

diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index d46ba683de7..1e9449a74da 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -53,6 +53,7 @@
 #include "BKE_main.h"
 #include "BKE_modifier.h"
 #include "BKE_object.h"
+#include "BKE_particle.h"
 #include "BKE_report.h"
 #include "BKE_scene.h"
 
@@ -2070,7 +2071,7 @@ static void outliner_draw_left_column_mode_toggle(uiBlock *block,
       }
       else {
         /* Not all objects have particle systems */
-        if (active_mode == OB_MODE_PARTICLE_EDIT && !ob->particlesystem.first) {
+        if (active_mode == OB_MODE_PARTICLE_EDIT && !psys_get_current(ob)) {
           return;
         }
         but = uiDefIconBut(block,



More information about the Bf-blender-cvs mailing list