Renamed "col2" to "wide_ui" which is more meaningful.
This commit is contained in:
@@ -24,7 +24,7 @@ narrowui = 180
|
||||
def point_cache_ui(self, context, cache, enabled, particles, smoke):
|
||||
layout = self.layout
|
||||
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
layout.set_context_pointer("PointCache", cache)
|
||||
|
||||
row = layout.row()
|
||||
@@ -93,7 +93,7 @@ def point_cache_ui(self, context, cache, enabled, particles, smoke):
|
||||
def effector_weights_ui(self, context, weights):
|
||||
layout = self.layout
|
||||
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
layout.itemR(weights, "group")
|
||||
|
||||
@@ -102,7 +102,7 @@ def effector_weights_ui(self, context, weights):
|
||||
col = split.column()
|
||||
col.itemR(weights, "gravity", slider=True)
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemR(weights, "all", slider=True)
|
||||
|
||||
@@ -118,7 +118,7 @@ def effector_weights_ui(self, context, weights):
|
||||
col.itemR(weights, "curveguide", slider=True)
|
||||
col.itemR(weights, "texture", slider=True)
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemR(weights, "harmonic", slider=True)
|
||||
col.itemR(weights, "charge", slider=True)
|
||||
@@ -131,7 +131,7 @@ def effector_weights_ui(self, context, weights):
|
||||
def basic_force_field_settings_ui(self, context, field):
|
||||
layout = self.layout
|
||||
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
|
||||
@@ -157,7 +157,7 @@ def basic_force_field_settings_ui(self, context, field):
|
||||
else:
|
||||
col.itemR(field, "flow")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemR(field, "noise")
|
||||
col.itemR(field, "seed")
|
||||
@@ -171,7 +171,7 @@ def basic_force_field_settings_ui(self, context, field):
|
||||
col.itemR(field, "do_location")
|
||||
col.itemR(field, "do_rotation")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemL(text="Collision:")
|
||||
col.itemR(field, "do_absorption")
|
||||
@@ -180,10 +180,10 @@ def basic_force_field_settings_ui(self, context, field):
|
||||
def basic_force_field_falloff_ui(self, context, field):
|
||||
layout = self.layout
|
||||
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
# XXX: This doesn't update for some reason.
|
||||
#if col2:
|
||||
#if wide_ui:
|
||||
# split = layout.split()
|
||||
#else:
|
||||
split = layout.split(percentage=0.35)
|
||||
@@ -196,7 +196,7 @@ def basic_force_field_falloff_ui(self, context, field):
|
||||
col.itemR(field, "use_min_distance", text="Use Minimum")
|
||||
col.itemR(field, "use_max_distance", text="Use Maximum")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemR(field, "falloff_power", text="Power")
|
||||
|
||||
|
Reference in New Issue
Block a user