Particles: child editing bugfixes
[blender.git] / release / scripts / ui / properties_particle.py
index d95455f7c10595722deefed083c708d78f27644e..3577ba961b3368f7011a773474843b67fbb94e53 100644 (file)
@@ -208,6 +208,10 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel):
         layout = self.layout
 
         psys = context.particle_system
         layout = self.layout
 
         psys = context.particle_system
+
+        if not psys.cloth:
+            return
+
         #part = psys.settings
         cloth = psys.cloth.settings
 
         #part = psys.settings
         cloth = psys.cloth.settings
 
@@ -298,8 +302,8 @@ class PARTICLE_PT_velocity(ParticleButtonsPanel):
         sub.prop(part, "random_factor")
 
         #if part.type=='REACTOR':
         sub.prop(part, "random_factor")
 
         #if part.type=='REACTOR':
-        #      sub.prop(part, "reactor_factor")
-        #      sub.prop(part, "reaction_shape", slider=True)
+        #    sub.prop(part, "reactor_factor")
+        #    sub.prop(part, "reaction_shape", slider=True)
 
 
 class PARTICLE_PT_rotation(ParticleButtonsPanel):
 
 
 class PARTICLE_PT_rotation(ParticleButtonsPanel):