9a5df92c1b
Fix T56872: Edge slide gives invalid normals
...
Add the ability to skip overwriting normals.
2018-11-27 11:40:32 +11:00
d7f55c4ff5
Cleanup: comment block tabs
2018-11-14 17:10:56 +11:00
a247b53084
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3732
2018-09-27 15:36:35 +02:00
44370a307c
UI: hide transform constraints when not used
2018-07-26 15:44:27 +10:00
f9107eae6a
Keymap: minor changes for keymap display
2018-07-10 07:41:49 +02:00
f51c6efbc1
Fix transform plane constraint orientation cycle
...
Regression since 2.79b release
2018-07-10 06:51:25 +02:00
6793aebad2
Cleanup: remove 'Orientation' from keymap item name
...
It's constraint not an orientation,
in transform context it can be inferred.
2018-07-09 07:39:26 +02:00
70e2824126
Keymap: remove some hard coded transform events
...
Also re-order for display purposes
2018-07-09 07:29:12 +02:00
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
ddee0931b8
RNA: use bool for boolean RNA types
...
We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.
2018-07-01 15:57:59 +02:00
b26e9f0000
Cleanup: rename bmesh_queries -> bmesh_query
...
Other files with the same purpose already used 'query'.
2018-06-30 10:32:21 +02:00
20367898fe
Fix T55301: Transform confirm on release fails w/ MMB
2018-06-08 08:48:21 +02:00
b99d064e91
Cleanup: trailing space
2018-05-13 06:44:03 +02:00
85de548e03
Cleanup: indentation
2018-04-16 17:08:27 +02:00
2872965652
Cleanup: avoid recalculating global center
2018-04-09 12:40:10 +02:00
5a61c1de82
Fix T53786: Proportional size from redo ignored
...
Changing PET size while transforming stores the size in the
tool settings, but changing in the redo panel didn't.
2018-01-19 21:09:16 +11:00
e428ea3e00
Cleanup: indentation
2018-01-16 11:40:43 +11:00
18d7fbe4f5
Cleanup: order buffer length after the buffer
2017-11-06 00:04:46 +11:00
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
60956397ca
Cleanup: BLI_utildefines prefix for header-only libs
...
This allows to have different macro headers without them sharing
similar names to regular C modules.
2017-09-19 20:16:05 +10:00
53ec0e5166
Fix T52227: Time Slide tool doesn't take NLA mapping into account
...
To be backported to 2.79
2017-09-03 12:49:15 +12:00
a520e7c85c
Transform: center override
...
Hidden option to override transform center.
Needed for manipulators that define their own center.
2017-08-28 16:00:28 +10:00
9210a4faf3
Fix unpredictable trackball rotation
...
D2729 by @IgorNull
Currently, trackball rotation sequentially applies rotation across x axis and y axis,
which produces a strange/unusable result on diagonal pointer motion.
This change fixes the problem by using a single axis which is orthogonal
and proportional to mouse delta - matching view-port trackball.
2017-06-30 11:10:05 +10:00
1d966ca7a1
Math Lib: add angle_on_axis_v3v3_v3
...
Use for calculating the angle between 2 directions on an axis.
Also signed version and normalized plane projection,
use when input is normalized.
2017-06-16 01:27:58 +10:00
863f0434ec
Fix T51691: Shear cursor input scales w/ zoom
...
Use relative value from cursor movement.
2017-06-02 20:40:41 +10:00
0d8bf4bf94
Cleanup: style
2017-06-02 15:38:04 +10:00
9737401688
Fix T51169: Push/pull fails w/ local lock axis
2017-05-22 21:12:43 +10:00
81e584ed17
CMake: Use GCC7's -Wimplicit-fallthrough=5
...
Use to avoid accidental missing break statements,
use ATTR_FALLTHROUGH to suppress.
2017-05-20 14:01:03 +10:00
87f8bb8d1d
Fix another part of T50565: Planar constraints were always initialized to accurate transform
...
Now it is defined by keymap.
2017-03-02 12:18:07 +01:00
0b4a9caf51
Forgotten in committee ddf99214dc
...
In obect mode, the rotation matrix need to be restored to the initial value if a snap point is not found
2017-02-03 12:57:02 -03:00
ddf99214dc
fix T49494: snap_align_rotation should use a local pivot to make the transformation
...
The problem was simple, just transform the global coordinates of t->tsnap.snapTarget to local coordinates.
(Some comments were added to the code)
2017-02-03 02:27:57 -03:00
e138cdeeb6
Transform manipulator: Allow first clicking Shift before selecting axis
...
Avoids possible jumps when one is trying to do some really preciese tweak.
Quite striaghtforward change for mouse input initialization: take Shift
state into account. However, this will interfere with the axis exclusion
which is currently also uses Shift (the feature to move something in a
plane which doesn't have selected axis). This is probably not so commonly
used feature (nobody in the studio even knew of it) and the only downside
now would be that such a constrainted movement will become accurate by
default. That's easy to deal from user side by just unholding Shift key.
Reviewers: brecht, mont29, Severin
Differential Revision: https://developer.blender.org/D2418
2017-01-18 12:18:54 +01:00
Julian Eisel
0a26904a75
Fix T49872: 3D cursor places with camera shift in ortographic mode
2016-12-08 12:41:27 +01:00
d258865995
Compiler warning fix
2016-12-02 03:13:46 +13:00
Julian Eisel
0cd1b5ef85
Fix T50022: "Mirror" in Dopesheet Crashes Blender
...
Just fixing crash itself. Actually operator shouldn't run in most editors (not in dopesheet either I guess), but don't want to spend time on that right now.
2016-11-15 15:30:33 +01:00
fb94f4b884
Fix T48998: 'header input' of rotation transform was clamped in [-PI, PI[ range.
...
Can't see any reason for this behavior (inherited from 2.4x code), so for now just removing it.
2016-08-02 12:43:03 +02:00
8fab198aae
Cleanup: rename btree (incorrect & confusing)
2016-07-31 12:05:53 +10:00
f74645578c
Missing free for single-sided edge-slide failure
2016-07-29 14:24:03 +10:00
cba8e03672
Fix T48962: Edge-slide, random edge switch order
2016-07-28 21:50:41 +10:00
5ecc6a824a
Fix T48404: Translate fails w/ snap orientation option
...
Rotate the object around the snap-target so it meets the snap-point.
2016-07-28 18:16:31 +10:00
7a3ea87bbf
Cleanup: use normalize_v#_length
2016-07-08 10:14:49 +10:00
0a026033ae
BMesh: make toolflags optional
...
Saves 8 bytes per vert/edge/face.
Gives overall ~20-25% memory saving for dyntopo sculpting
and modifiers that use BMesh.
2016-07-01 19:29:22 +10:00
37560e77e8
Fix T48689: Transform proportional size was not seriously clamped.
...
Now use same, reasonable min/max values, to avoid getting inf or zero values when
using shortcuts during transform operation...
2016-06-23 16:45:06 +02:00
Phil Gosch
9c600435fa
Made incremental snapping intervalls smaller for UV editor
...
Before the intervall was set to 0.125 which effectively resulted in 8 positions across the UV space (per axis).
I halved that value, holding shift enables an even finer movement.
This change was ported over from my soc-2016-uv_tools branch after talking with howardt, ideasman42 and hackerman-
2016-06-13 18:35:32 +02:00
a0e91ef040
Fix T48554: Absolute grid snap fails w/ cursor pivot
...
Use center of selection when using absolute grid snapping and cursor pivot.
2016-06-01 00:01:17 +10:00
b1e2f8be23
Fix T48426: Use same length for all header message strings.
...
Some languages like Chinese or Japanese take three or four bytes per char...
Also fixed some missing translation markers for UI header messages.
2016-05-14 10:00:52 +02:00
73b672ee97
Fix: Transform constraint/helper line drawing had incorrect thickness when GPencil strokes are shown
2016-02-09 21:55:07 +13:00
c2508b0aaf
Fix transform crash in rare cases
...
In some cases transform modes would use the custom-data pointer,
other times the transform conversion functions would.
However with some combinations (bone mirror + bend for eg),
both conversion & transform mode would use this pointer causing a crash.
Fix this by having 2 custom-data pointers:
one for the mode, another for the data-type.
This also simplifies time-slide which was conditionally mixing mode/type data in the one array.
2016-02-01 15:23:29 +11:00
75838de7c3
Fix i18n-related points in T47265 - mostly, fix non-translated items in enum-search popup menu.
2016-01-29 15:06:46 +01:00
e25ba162c0
OpenGL: call glLineWidth less often
...
Each LINES draw call is now responsible for its own line width. No need
to set it back to its 1.0 default after every draw.
This eliminates half our calls to glLineWidth , similar to last week’s
work on glPointSize.
2016-01-23 00:58:51 -05:00