bbc4a92318
Curve selection, de-duplicate & cleanup
2015-07-09 14:39:24 +10:00
4a328a7689
EditCurve: move selection into own file
2015-07-09 00:09:26 +10:00
6057548058
Fix/Cleanup possibility to type insane values in 'add' operators options.
...
Our 'hard limit' values was too often max_int/float here, mis-typing could
lead to crash (or infinite hanging) of Blender, see e.g.
http://blender.stackexchange.com/questions/32790/blender-forces-computer-to-reboot-after-mistyping-extreme-value-for-resolution-i
2015-06-21 16:06:44 +02:00
e665a60a85
Fix T44854: Creating hooks from curve to objects doesn't work
...
The issue was introduced in e529882 by doing wrong range checking.
2015-05-27 13:08:17 +05:00
c3810c596e
Use PKey for edit-armature separate
...
As used already for mesh & curves.
Add confirmation menu for curve & armature,
since this isn't such a common operation and undoing leaves object data
(long term bug/todo to fix).
2015-05-27 09:56:50 +10:00
e529882be0
Fix second crashing part of T44497, out of bounds access to hook
...
modifier data.
Unfortunately seems like we also lose the hook mapping by doing this,
but this can be fixed later and is probably a separate issue.
2015-05-22 16:59:22 +02:00
097862cb26
GHash: avoid redundant casts
2015-05-11 12:39:39 +10:00
1dd1d286c6
Select nth option to skip steps
...
Patch T43752 @codemanx , added matching curve option.
2015-03-19 04:40:43 +11:00
95a1cc20dc
Fix crash extruding an empty curve
2015-03-10 18:22:08 +11:00
5520b8df4b
cleanup: double promotion
2015-02-27 14:52:58 +11:00
f9f04726e5
GHash: no need to malloc iterators
2015-02-06 15:34:36 +11:00
fca515838e
Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).
...
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
2015-01-26 16:59:24 +01:00
027361c898
Fix T41834: Ctrl+LMB, Extrude Curves 2+ splines
...
Extrude and Ctrl+LMB now support multiple selected vertices.
Also maintain active vertices.
D964 by Tyler Sliwkanich with own modifications
2015-01-26 21:08:43 +11:00
5d61cbf008
Curves: BKE_nurb_copy left duplicate arrays
...
While callers accounted for this, its quite error prone. Just NULL instead.
2015-01-26 18:22:54 +11:00
6f7b4a3a3e
Fix T42639, editcurve flags not getting restored on undo.
...
Error here could be reproduced by tweaking curve properties such as
2d-3d or fill type and undoing.
2014-11-20 19:09:50 +01:00
b7f5ab0cd3
ShapeKeys: Add BKE_keyblock_is_basis to check whether a given keyblock is used a basis by others.
...
Also fix stupid debug-only error in previous commit.
2014-11-17 11:19:54 +01:00
d526ef607d
Cleanup: rename BKE_key_convert/update to BKE_keyblock_convert/update.
...
We are handling a keyblock here, not a whole key(set). Names are alreay a bit confusing,
let's be consistent at least.
2014-11-17 11:19:54 +01:00
5c6e333780
UI Refactor T41640
...
Make the UI API more consistent and reduce confusion with some naming.
mainly:
- API function calls
- enum values
some internal static functions have been left for now
2014-11-10 23:06:54 +01:00
2c35bcb356
Cleanup: use SELECT flag
2014-10-28 18:39:43 +01:00
2f0bdcb306
Fix T41041: 'Delete keyframe' removes markers too
...
Operators that trigger UI events (but nothing else)
were using 'CANCELLED' making it impossible to tell if an invoke
function failed, or opened a menu.
2014-10-28 17:51:43 +01:00
e8f3fa99de
Support more object types scene-scale (on creation)
...
- lamp
- camera
- font
- empty & effector
Also fix inconsistency with apply transform
(modified shape-keys for meshes but not curve/lattice)
2014-09-01 21:01:11 +10:00
ddb843a1ac
Fix T41443: Separate bug with Curves & Hooks
...
This solves the crash, but indices might be wrong after the separation.
There are loads of other ways to confuse hook indices in both meshes and
curves, for now considering this a TODO.
2014-08-15 12:50:21 +06:00
2f2bf513e9
Revert "Fix T41226: Wrong Undo on curves and hooks"
...
This reverts commit e042c8428f .
Proper fix will come later, or be declared a TODO.
2014-08-01 12:30:41 +06:00
e042c8428f
Fix T41226: Wrong Undo on curves and hooks
2014-07-31 18:21:57 +06:00
00b29156e0
Defines: replace ELEM3-16 with ELEM(...), that can take varargs
2014-07-20 01:33:40 +10:00
397bc87486
Fix T41039: Hook modifier sometimes fails to retain correct bezier curve point assignment
2014-07-18 14:44:05 +06:00
543f7b7053
Fix wrong index update when removing CV points
2014-07-18 13:38:09 +06:00
a4d9c8f579
Code cleanup: casts, dead assignment & arg order.
2014-06-26 15:46:42 +10:00
d9de1b367e
Revert "Fix flickering when transform snapping in edit mode and cursor is"
...
Looks like the cleanest way to handle this is to no do bounding box collision
for edit mode at all. But this is easy to enforce
This reverts commit 7b5fe4f316 .
Conflicts:
source/blender/editors/transform/transform_snap.c
2014-06-18 18:20:55 +03:00
bf462149a6
BLI_bitmap: rename macros
...
- BLI_BITMAP_SET -> BLI_BITMAP_ENABLE
- BLI_BITMAP_CLEAR -> BLI_BITMAP_DISABLE
- BLI_BITMAP_GET -> BLI_BITMAP_TEST
- BLI_BITMAP_MODIFY -> BLI_BITMAP_SET
2014-06-14 00:47:12 +10:00
7b5fe4f316
Fix flickering when transform snapping in edit mode and cursor is
...
slightly outside the mesh.
Reported by Thomas Beck on irc. Issue here is that the mesh bounding box
changes as we are transforming the vertices. Solution is to collide
against the initial bounding box. Unfortunately the snapping functions
are made in a way that a lot of code needed to be tweaked here, but the
change should be straightforward and harmless (famous last words, I
know).
Ideally we might want to even increase the size of the bounding box a
little (as seen in screen space) to allow snapping even in cases where,
cursor is slightly outside the bounding box, but since this is not so
straightforward to do for all cases, at least for me, leaving this as
a TODO.
2014-06-12 01:43:38 +03:00
a1d286a699
Fix curve switch direction ignoring active vertex
2014-05-26 09:37:04 +10:00
d84af360ca
EditCurve: Replace -1 with CU_ACT_NONE define
2014-05-26 09:37:04 +10:00
eaf815f14a
Fix for curve having invalid active vertex after setting type
...
also allow passing NULL vertex to BKE_curve_nurb_vert_active_set
2014-05-26 09:35:32 +10:00
6edcff4fd2
Fix for nurbs surface merge didn't update key index
2014-04-29 19:56:15 +06:00
c67bd49e56
Code cleanup: use 'const' for arrays (editors)
2014-04-27 00:25:15 +10:00
a15b3c4d11
Code cleanup: use bool
2014-04-11 11:33:29 +10:00
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
f4a990bfcd
Fix for curve smooth ignoring cyclic
2014-03-28 09:26:45 +11:00
8480bb64ec
Code cleanup: style
2014-03-17 21:48:13 +11:00
2097e621ed
Code cleanup: use r_ prefix for return args
2014-03-16 03:26:23 +11:00
7b03eb56bd
Fix T39109: Vertices affected by Hook Modifiers change after "switch Direction" on Curves
...
Remapping hooks and vertex parent wasn't implemented for curves.
2014-03-12 15:46:24 +06:00
57dba73917
View3d: take pixelsize into account for selection distance
2014-03-11 15:34:19 +11:00
13ea967cce
Code cleanup: correct abs use and quiet warnings
2014-03-01 14:26:18 +11:00
103583c89b
Fix T38786: Curve unable to make segment
2014-02-24 19:24:52 +11:00
08f5e3897c
Modifier: rename triangulate scanfill to ear-clip
2014-02-21 15:03:34 +11:00
b3afbcab8f
ListBase API: add utility api funcs for clearing and checking empty
2014-02-08 06:24:05 +11:00
37026b12ec
Code cleanup: use bool for static methods
2014-02-05 22:36:15 +11:00
d900f5be55
Code cleanup: use bools where possible
2014-02-03 19:35:44 +11:00
a5c35fb27f
Code cleanup: use booleans where appropriate
2014-01-28 04:00:04 +11:00