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>2012-03-02 16:09:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-02 16:09:49 +0400
commit622ac0dd1682fd4949319817fd6e58fc7d7c86ed (patch)
treec52790d29ae0d7f405ad8482b6e4d68a358ea1ac /source/blender/editors/render
parentcf927d3fd149cbbba4732c789ccbac239f4000f3 (diff)
code cleanup:
replace casts: '((Mesh *)ob->data)->edit_btmesh' with 'BMEdit_FromObject(ob)' also minor style edits.
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r--source/blender/editors/render/render_shading.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index 3a65d701b58..b98eb330e42 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -165,7 +165,7 @@ static int material_slot_assign_exec(bContext *C, wmOperator *UNUSED(op))
if(ob && ob->actcol>0) {
if(ob->type == OB_MESH) {
- BMEditMesh *em= ((Mesh*)ob->data)->edit_btmesh;
+ BMEditMesh *em = BMEdit_FromObject(ob);
BMFace *efa;
BMIter iter;
@@ -220,13 +220,13 @@ void OBJECT_OT_material_slot_assign(wmOperatorType *ot)
static int material_slot_de_select(bContext *C, int select)
{
- Object *ob= ED_object_context(C);
+ Object *ob = ED_object_context(C);
if(!ob)
return OPERATOR_CANCELLED;
if(ob->type == OB_MESH) {
- BMEditMesh *em= ((Mesh*)ob->data)->edit_btmesh;
+ BMEditMesh *em = BMEdit_FromObject(ob);
if(em) {
EDBM_deselect_by_material(em, ob->actcol-1, select);