Blender Git Loki
Git Commits -> Revision 3a4c307
Revision 3a4c307 by Mitchell Stokes (master) July 28, 2016, 02:00 (GMT) |
Use COMPAT_ENGINES instead of RenderEngine.use_game_engine for panel poll methods This mostly affects physics panels. Any engines relying on RenderEngine.use_game_engine flag to show/hide panels will need to be updated. The COMPAT_ENGINES technique is how we usually deal with this. One issue with use_game_engine is that I cannot find a way to set it; it appears only the BGE can set it. This means (without this commit) external RenderEngines cannot get rid of the default physics panels. The RE_GAME flag (the C flag behind use_game_engine) is pretty hacky and we should look into removing its usage where possible. |
Commit Details:
Full Hash: 3a4c307652e7e58aace0384d7306b28b7626a1d9
Parent Commit: a27acef
Lines Changed: +72, -31
11 Modified Paths:
/release/scripts/startup/bl_ui/properties_game.py (+1, -1) (Diff)
/release/scripts/startup/bl_ui/properties_physics_cloth.py (+7, -1) (Diff)
/release/scripts/startup/bl_ui/properties_physics_common.py (+2, -1) (Diff)
/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py (+18, -9) (Diff)
/release/scripts/startup/bl_ui/properties_physics_field.py (+5, -3) (Diff)
/release/scripts/startup/bl_ui/properties_physics_fluid.py (+8, -4) (Diff)
/release/scripts/startup/bl_ui/properties_physics_rigidbody.py (+6, -3) (Diff)
/release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py (+2, -1) (Diff)
/release/scripts/startup/bl_ui/properties_physics_smoke.py (+13, -5) (Diff)
/release/scripts/startup/bl_ui/properties_physics_softbody.py (+8, -1) (Diff)
/release/scripts/startup/bl_ui/properties_world.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_physics_cloth.py (+7, -1) (Diff)
/release/scripts/startup/bl_ui/properties_physics_common.py (+2, -1) (Diff)
/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py (+18, -9) (Diff)
/release/scripts/startup/bl_ui/properties_physics_field.py (+5, -3) (Diff)
/release/scripts/startup/bl_ui/properties_physics_fluid.py (+8, -4) (Diff)
/release/scripts/startup/bl_ui/properties_physics_rigidbody.py (+6, -3) (Diff)
/release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py (+2, -1) (Diff)
/release/scripts/startup/bl_ui/properties_physics_smoke.py (+13, -5) (Diff)
/release/scripts/startup/bl_ui/properties_physics_softbody.py (+8, -1) (Diff)
/release/scripts/startup/bl_ui/properties_world.py (+2, -2) (Diff)