use BLI_snprintf rather than sprintf for interface functions
This commit is contained in:
@@ -204,7 +204,7 @@ class PHYSICS_PT_game_obstacles(PhysicsButtonsPanel, Panel):
|
||||
def poll(cls, context):
|
||||
game = context.object.game
|
||||
rd = context.scene.render
|
||||
return (game.physics_type in ('DYNAMIC', 'RIGID_BODY', 'SENSOR', 'SOFT_BODY', 'STATIC')) and (rd.engine in cls.COMPAT_ENGINES)
|
||||
return (game.physics_type in {'DYNAMIC', 'RIGID_BODY', 'SENSOR', 'SOFT_BODY', 'STATIC'}) and (rd.engine in cls.COMPAT_ENGINES)
|
||||
|
||||
def draw_header(self, context):
|
||||
game = context.active_object.game
|
||||
|
@@ -988,7 +988,7 @@ class PARTICLE_PT_draw(ParticleButtonsPanel, Panel):
|
||||
col.label(text="Color:")
|
||||
col.prop(part, "draw_color", text="")
|
||||
sub = col.row()
|
||||
sub.active = part.draw_color in ('VELOCITY', 'ACCELERATION')
|
||||
sub.active = (part.draw_color in {'VELOCITY', 'ACCELERATION'})
|
||||
sub.prop(part, "color_maximum", text="Max")
|
||||
|
||||
if (path):
|
||||
|
Reference in New Issue
Block a user