Particles todo item: particle textures
[blender-staging.git] / source / blender / makesrna / intern / rna_texture.c
index 7c83676113d1d61e34db4cd30cd006290d8908e2..9f6014fdbc288ac28cdcab9a8287d3f1b14a1a79 100644 (file)
@@ -185,6 +185,20 @@ void rna_TextureSlot_update(Main *bmain, Scene *scene, PointerRNA *ptr)
                case ID_BR: 
                        WM_main_add_notifier(NC_BRUSH, id);
                        break;
+               case ID_PA:
+               {
+                       MTex *mtex= ptr->data;
+                       int recalc = OB_RECALC_DATA;
+
+                       if(mtex->mapto & PAMAP_INIT)
+                               recalc |= PSYS_RECALC_RESET;
+                       if(mtex->mapto & PAMAP_CHILD)
+                               recalc |= PSYS_RECALC_CHILD;
+
+                       DAG_id_tag_update(id, recalc);
+                       WM_main_add_notifier(NC_OBJECT|ND_PARTICLE|NA_EDITED, NULL);
+                       break;
+               }
        }
 }