Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-19 08:51:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-19 08:51:14 +0300
commit082d7e8d5f8d85449257a68418fbd672bc49b60a (patch)
tree6d1731c40ab092d5e8f30797239b776f2ebf9e7a /release/scripts/startup/bl_ui/properties_physics_smoke.py
parentba44602b2389385b4c7f719f980df2f7b9b6fff0 (diff)
Cleanup: use staticmethod where appropriate
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_smoke.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_smoke.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py
index 7770db7105e..898e1f3804e 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -33,6 +33,7 @@ class PhysicButtonsPanel:
bl_region_type = 'WINDOW'
bl_context = "physics"
+ @staticmethod
def poll_smoke(context):
ob = context.object
if not ((ob and ob.type == 'MESH') and (context.smoke)):
@@ -41,6 +42,7 @@ class PhysicButtonsPanel:
md = context.smoke
return md and (context.smoke.smoke_type != 'NONE') and (bpy.app.build_options.mod_smoke)
+ @staticmethod
def poll_smoke_domain(context):
if not PhysicButtonsPanel.poll_smoke(context):
return False