Fix assert hiding selected particles
authorPhilipp Oeser <info@graphics-engineer.com>
Tue, 10 Sep 2019 09:30:54 +0000 (11:30 +0200)
committerPhilipp Oeser <info@graphics-engineer.com>
Tue, 10 Sep 2019 09:31:40 +0000 (11:31 +0200)
was trying to get a boolean with RNA_enum_get (instead of
RNA_boolean_get)

Spotted while looking into T69680, T69432

source/blender/editors/physics/particle_edit.c

index 848e5675fecff3e86b03386bc922380eec63450c..0807468fbaf920b3ae9c54c079c27b05d713e8fe 100644 (file)
@@ -2354,7 +2354,7 @@ static int hide_exec(bContext *C, wmOperator *op)
   POINT_P;
   KEY_K;
 
-  if (RNA_enum_get(op->ptr, "unselected")) {
+  if (RNA_boolean_get(op->ptr, "unselected")) {
     LOOP_UNSELECTED_POINTS
     {
       point->flag |= PEP_HIDE;