Jason Wilkins
2a6217859e
Patch [ #30255 ] Center Last Stroke
...
Enables the NUMPERIOD view centering operator to work in sculpt mode. Hitting NUMPERIOD while in sculpt mode will center the view on the end of the last sculpting stroke made by the user.
This is useful for quickly refocusing on the current work area without fussing with the view controls.
It does not zoom into the stroke (slide only).
It does nothing if there have been no strokes.
2012-05-03 03:51:30 +00:00
Campbell Barton
d6be860d31
bmesh: use fixed stack size for face flipping array.
...
also quiet unused var warnings
2012-05-02 11:10:54 +00:00
Brecht Van Lommel
d47499f6fc
Fix #31199 & #31112 : cycles not working well with vertex/weight paint selection
...
mask drawing.
Now refactored the code a bit so that in no longer calls textured mesh drawing
for the face mask drawing, just handle it as part of regular paint color drawing.
Should also make the blender internal behavior more logical where it would start
showing textures in solid mode when enabling face masking.
2012-05-02 10:52:29 +00:00
Campbell Barton
933b3166fc
style cleanup: guys - set your editors to tabs!
2012-05-01 17:51:03 +00:00
Joshua Leung
75a468f61e
Comment fixes - code for Object Motion Paths still referred to Bones
2012-05-01 13:51:50 +00:00
Sergey Sharybin
6527f42b6b
Fix #31193 : Normals don't have any Z component
...
Issue was caused by heavily non-uniform scale applied on object.
Run scale correction on face and vertex normals draw if there's non-uniform scale.
2012-05-01 11:01:24 +00:00
Campbell Barton
a5af5e8f50
style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30 16:22:40 +00:00
Campbell Barton
60c9addf79
- improve select grouped prefix/suffix from recent patch
...
- added select similar direction (Y axis)
2012-04-30 08:24:44 +00:00
Campbell Barton
1b47e2678e
style cleanup: missed these from previous cleanup
2012-04-29 17:55:54 +00:00
Campbell Barton
e701f9b670
style cleanup: whitespace / commas
2012-04-29 15:47:02 +00:00
Sergey Sharybin
f88cfd9168
Code and style cleanup in own modules in BKE and also mball module
...
- Make sure functions are named in way BKE_<object>_<action> (same way as RNA callbacks)
- Make functions which are used by mball.c only static and remove their prototypes
from public header file.
Further cleanup is coming.
2012-04-28 16:49:00 +00:00
Campbell Barton
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
Campbell Barton
c91fd5a0bf
code cleanup: remove editmesh code left hanging around thats already been ported to bmesh, also remove main editmesh header.
2012-04-28 12:23:05 +00:00
Campbell Barton
9caab2e265
code cleanup: replace some long ELEM7 checks with macro OB_TYPE_SUPPORT_EDITMODE()
2012-04-28 10:33:32 +00:00
Campbell Barton
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
Campbell Barton
4469ab9857
code cleanup:
...
- move lasso functions into BLI (were in 3D view but UV editor needs access)
- remove unused UV functions (ones that assumed 3-4 sized UVs only)
2012-04-27 07:26:28 +00:00
Campbell Barton
0943f4bc77
now vertex paint uses the same overrides as weight paint - so wire draw mode allows vertex paint to be unlit (which is quite handy, previously you had to hide lamps).
2012-04-24 23:47:10 +00:00
Campbell Barton
48893dba24
style cleanup: no functional changes
2012-04-24 22:50:49 +00:00
Campbell Barton
47b6b60e5a
code cleanup: no functional change - had both EDBM_editselection_* and BM_editselection_* funcs, replace EDBM_ funcs.
2012-04-24 21:19:18 +00:00
Campbell Barton
e017621f6a
code cleanup: rename UV functions to closer match bmesh api
2012-04-24 19:59:06 +00:00
Antony Riakiotakis
4782522379
Add libMV and Scons support for MinGW-w64, patches by Caleb Joseph with slight modifications.
...
Thanks!
2012-04-24 12:57:58 +00:00
Campbell Barton
b8c4c54ff0
corrected more issues from [ #31069 ] Analyzing the Blender project with PVS-Studio
2012-04-23 16:29:13 +00:00
Campbell Barton
ceffa6e1fa
code cleanup: comment unused functions (removed one which isnt useful anymore).
2012-04-23 07:32:13 +00:00
Campbell Barton
bb17a6b8f8
fix [ #31064 ] Save confirmation stops showing
...
also comment unused functions.
2012-04-23 06:37:16 +00:00
Campbell Barton
16ff7e40e6
code cleanup: change C naming convention (so py and C api match), eg:
...
C: BM_face_calc_area(f), Py: BMFace.calc_area()
2012-04-23 01:19:50 +00:00
Campbell Barton
5c89138684
style cleanup: comments
2012-04-22 11:54:53 +00:00
Campbell Barton
b56aabf815
style cleanup: multi-line if statements.
2012-04-21 15:11:03 +00:00
Campbell Barton
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00
Campbell Barton
b26865ba99
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).
...
Add asserts so the correct types are ensured.
2012-04-20 16:55:47 +00:00
Campbell Barton
91dc245f93
attempt to fix [ #31033 ], cant redo the bug but button layout wasnt great
...
- no more blank space under XYZ
- scales with DPI
2012-04-20 16:17:52 +00:00
Campbell Barton
b40476455e
code cleanup: remove unused BMesh args.
2012-04-19 14:38:09 +00:00
Campbell Barton
475ecbb0ce
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).
2012-04-19 13:47:58 +00:00
Campbell Barton
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
Thomas Dinges
0b3f94d91f
Fixing bug [ #31005 ] Nurbs UI bug
...
* W button was hidden, due to too small y alignment.
2012-04-18 20:43:07 +00:00
Brecht Van Lommel
8ae502ae99
Fix #30977 : error loading modal keymaps from keyconfiguration presets.
2012-04-17 15:40:04 +00:00
Thomas Dinges
3f605bff4b
Scons:
...
* Add new scons options to 'blenderlite' target
* Remove ancient yafray comment
2012-04-14 22:33:48 +00:00
Campbell Barton
87364befd9
fix [ #30728 ] Align View Restricts Further View Changes
...
turntable rotation can get into gimbal lock.
2012-04-13 15:15:13 +00:00
Campbell Barton
958e71e375
code cleanup: use axis_angle_to_quat() to simplify turntable view rotate code.
2012-04-13 13:55:55 +00:00
Brecht Van Lommel
2a5a465e2c
Fix part of #30917 : solid + glsl + textured solid in texture paint mode did not
...
show textured solid as it should, was using glsl instead.
2012-04-12 17:34:29 +00:00
Brecht Van Lommel
10a333556a
Fix related to #30917 : wrong colors in cycles textured draw mode in some cases,
...
missed call to glColorMaterial made glEnable(GL_COLOR_MATERIAL) behavior
undefined.
2012-04-12 15:23:34 +00:00
Campbell Barton
b4a0152e76
code cleanup: float formatting was confusing in some cases - eg: (0.,0.,0.)
2012-04-11 08:15:13 +00:00
Sergey Sharybin
84232f8d5a
Fix #30664 : Texturepaint color does not match texture color (3D View vs UV/Image Editor)
...
Another regression since bmesh merge which was caused getting CD_MTFACE from
polys datablock instead of face datablock.
2012-04-10 19:27:02 +00:00
Sergey Sharybin
a08fdf1f2a
Fix #30874 : Single texture display in Edit Mode
...
It was a regression since 2.62 caused by how texface is passing to drawParamsMapped
Previously it was used from CD layer but now it's getting copied from MexPoly
into a variable allocated in stack for function void emDM_drawFacesTex_common.
To set texture needed to draw particular face function set_draw_settings_cached
is used, which tries to not to copy texture into GPU when it's not needed (for
example, when drawing bunch of faces with the same texture) and one of condition
if texture should be updated in GPU was comparing address of texface passed to
this function and cached texface. But this address are exactly the sane and
points to a memory inside stack of emDM_drawFacesTex_common.
Fixed by cacheing texface content, not it's address.
2012-04-10 16:28:26 +00:00
Brecht Van Lommel
530f199124
Code cleanup: remove a bunch of unused code from this file.
2012-04-10 15:47:34 +00:00
Sergey Sharybin
4795f4b9ac
mango request: option to draw background in front of all objects in the viewport.
...
Should be really handy for painting clean plates.
2012-04-10 14:59:06 +00:00
Campbell Barton
c4ce26c906
Address [ #30842 ] Blenders Measurement Units set to Metric, makes some Precision Flaws.
...
use the same precision for location all over (2-5 was used), use define as 5.
also disallow boolean to have any subtype besides PROP_LAYER_MEMBER, some booleans had TRANSLATION / XYZ subtypes which don't make sense.
2012-04-10 08:33:30 +00:00
Campbell Barton
1f3e453509
fix [ #30848 ] Edge Selection fails when the following Conditions met:
...
summery: when both verts are outside the viewport
this is in fact a very old annoyance but good to resolve.
fix by doing segment/rectangle intersection between the edge and the viewport so it works when the both verts are outside the view.
2012-04-10 07:30:08 +00:00
Campbell Barton
d5953568c8
use 'const float[3]' for derived mesh callback args.
2012-04-09 07:06:06 +00:00
Campbell Barton
87adbbbfba
fix [ #30788 ] Weight paint mode draws mask single sided only when selected.
...
error with recent refactoring.
2012-04-05 02:23:00 +00:00
Campbell Barton
320aa33e65
rename MPoly vars called mface or mf, to avoid confusion with MFace types.
2012-04-03 23:40:24 +00:00