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/space_image
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/space_image')
-rw-r--r--source/blender/editors/space_image/space_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index ce7338ced13..7abc0c6ea71 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -276,7 +276,7 @@ int ED_space_image_show_uvedit(SpaceImage *sima, Object *obedit)
return 0;
if(obedit && obedit->type == OB_MESH) {
- struct BMEditMesh *em = ((Mesh*)obedit->data)->edit_btmesh;
+ struct BMEditMesh *em = BMEdit_FromObject(obedit);
int ret;
ret = EDBM_texFaceCheck(em);
@@ -294,7 +294,7 @@ int ED_space_image_show_uvshadow(SpaceImage *sima, Object *obedit)
if(ED_space_image_show_paint(sima))
if(obedit && obedit->type == OB_MESH) {
- struct BMEditMesh *em = ((Mesh*)obedit->data)->edit_btmesh;
+ struct BMEditMesh *em = BMEdit_FromObject(obedit);
int ret;
ret = EDBM_texFaceCheck(em);