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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-02-20 23:39:27 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-02-20 23:39:27 +0300
commitebd2b1212de7bfc1fabb3af114e954beefd0798c (patch)
treec5aa448df9f03375566fbc019cb83477f992d9a7 /source/blender/editors/sculpt_paint/sculpt.c
parent39c2b438a9490468625bd047fdf7b4c02c5348ef (diff)
2.5: Particle Edit, work in progress commit.
* Still incomplete and some operators don't work, refresh issues, etc. * Made Hide/Reveal operators consistent for various modes.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index f3d29989bb8..8987479bbfc 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1300,26 +1300,6 @@ static void SCULPT_OT_radial_control(wmOperatorType *ot)
/**** Operator for applying a stroke (various attributes including mouse path)
using the current brush. ****/
-static void sculpt_load_mats(bglMats *mats, ViewContext *vc)
-{
- float cpy[4][4];
- int i, j;
-
- Mat4MulMat4(cpy, vc->rv3d->viewmat, vc->obact->obmat);
-
- for(i = 0; i < 4; ++i) {
- for(j = 0; j < 4; ++j) {
- mats->projection[i*4+j] = vc->rv3d->winmat[i][j];
- mats->modelview[i*4+j] = cpy[i][j];
- }
- }
-
- mats->viewport[0] = vc->ar->winrct.xmin;
- mats->viewport[1] = vc->ar->winrct.ymin;
- mats->viewport[2] = vc->ar->winx;
- mats->viewport[3] = vc->ar->winy;
-}
-
static float unproject_brush_radius(SculptSession *ss, float offset)
{
float brush_edge[3];
@@ -1363,7 +1343,7 @@ static void sculpt_update_cache_invariants(Sculpt *sd, bContext *C, wmOperator *
view3d_set_viewcontext(C, &cache->vc);
cache->mats = MEM_callocN(sizeof(bglMats), "sculpt bglMats");
- sculpt_load_mats(cache->mats, &cache->vc);
+ view3d_get_transformation(&cache->vc, cache->vc.obact, cache->mats);
sculpt_update_mesh_elements(C);