4bd0a2ba2d
replace VECCOPY -> copy_v3_v3, added copy_v*_v*_short too for typesafe copying, some parts of the code are copying float -> short normals without scaling. fix coming next.
2011-09-12 04:14:12 +00:00
a5631dba89
only initialize snap from the scene settings for view3d and image spaces since snap in the 3D view was enabling snap in the graph editor and sequencer without a button to disable it in those spaces.
2011-07-28 02:15:58 +00:00
3b6cb504b1
minor warning fixes for clang-static-checker
2011-07-27 13:03:56 +00:00
46cea37266
fix [ #28066 ] Unchecking 'self project' messes up 'Snap to Vertex'
...
this option is useful for all non-grid snapping modes (when in editmode) so make available in those cases too.
2011-07-27 07:22:31 +00:00
ca293c835f
correct misc warnings
2011-07-26 13:33:04 +00:00
8a335767d5
Snapping/Project
...
Disable editmesh as target if proportional edit is on (that was messed up incorrectly in revision 33233)
2011-06-21 15:28:13 +00:00
b306566a44
fix [ #25598 ] projection surface snap issue
...
Excuse the thrashing, this is from r35438, reverted r35444 under the _wrong_ impression Martin considered unacceptable.
2011-06-17 13:02:23 +00:00
f5ec4cf4e9
fix own mistake [ #27451 ] Flip to Top / Flip to Bottom menuitems on right click on header not working
...
also get rig of more shadowed vars (-Wshadow).
2011-05-23 08:14:29 +00:00
e038b25579
view3d function naming, no functional changes.
2011-05-21 08:56:37 +00:00
53d5761c94
function rename to give clearer meaning that they change from window to 3d coordinates.
...
some functions had vague names, I even ended up re-writing some of these functions by accident!
also added doxy comments.
* ED_view3d_win_to_3d (was window_to_3d)
* ED_view3d_win_to_delta (was window_to_3d_delta)
* ED_view3d_win_to_vector (was window_to_3d_vector / viewvector)
* ED_view3d_win_to_segment_clip (was viewline)
* ED_view3d_win_to_ray (was viewray)
2011-05-20 13:09:34 +00:00
3be303aa3e
corrections for redundant null checks & transform printing a string into its self.
2011-04-29 06:59:18 +00:00
faf07c3e2b
transform: floats were being implicitly promoted to doubles, adjust to use floats.
...
also use macros RAD2DEGF & DEG2RADF.
2011-03-28 17:06:15 +00:00
6a32442855
revert r35438, Martin doesn't like having this option tacked on.
2011-03-10 00:38:23 +00:00
1110c80696
add option requested [ #25598 ] projection surface snap issue
...
for retopo workflow you don't wan't to project the mesh onto its self, added option not to.
2011-03-09 22:45:34 +00:00
Nathan Letwory
95100afc12
doxygen: blender/editors tagged.
2011-02-27 20:29:51 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
43007d7fed
- fix python error for poselib UI when none is active.
...
- add info to create_dupli_objects rna function docstring.
- transform snap had bad define, disabling BVH accelerated snap (own fault).
2011-02-23 03:08:14 +00:00
1b25f48542
clear some unused warnings
2011-02-17 12:05:09 +00:00
8b7482892b
made most variables which are only used in a single file and not defined in header static for blenlib, blenkernel and editors.
2011-02-14 17:55:27 +00:00
7710d82007
fix [ #25926 ] lattice + projection on surface snap issue
2011-02-07 12:07:26 +00:00
8227b3d463
remove/comment unused vars
...
also removed unnecessary NULL checks (where the pointer was used later without checking).
2011-01-13 04:53:55 +00:00
8f21a43535
split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
...
no functional changes.
2011-01-07 18:36:47 +00:00
3bed4cbf2b
fix [ #25283 ] Edge length display difficult to read
...
- made theme colors for mesh edge len & face angle/area display.
- use %g rather then %f for float display, trims unneeded zeros.
- store cached 2d and 3d text color as bytes rather then floats, compare when drawing to avoid setting the context.
- use unsigned char for more color functions, avoids casting to glColorubv().
2010-12-20 03:59:22 +00:00
f90a2123ee
no functional change: only check against OB_RECALC_ALL but don't use for assignment.
...
Makes adding new flags give ambiguous results and also makes it less easy to tell whats intended.
In some places it looks like OB_RECALC_TIME should be left out too.
2010-12-17 15:51:42 +00:00
cd97253502
- added GCC warning -Wstrict-prototypes
...
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03 12:30:59 +00:00
2c70b1785c
bugfix [ #24887 ] Crash on snapping verts on other object
...
now the derived mesh and the editmesh will always have matching faces.
2010-11-24 18:02:35 +00:00
4a20c386fd
bugfix [ #20768 ] Project Snap Broken
2010-11-22 14:16:11 +00:00
01c6b6f1e9
[ #22854 ] Objects lag behind mouse pointer when transformed (translated)
...
[#24652 ] Project vertices button showing in object mode and leads to wrong behavior.
Removing soft redraw (code is still there in case we need it eventually) on mouse move, now that events are compressed.
2010-11-21 18:31:00 +00:00
7569a25a4f
centralize function for calculating pixel size. (no functional changes)
2010-11-05 05:26:34 +00:00
8268a4be71
most unused arg warnings corrected.
...
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating).
- mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-16 14:32:17 +00:00
572faf9e7a
Partial fix for [ #22867 ] retopo bug
...
* More logical to restrict snapping to all visible objects instead of just selectable objects
* Rest of bug added to todo-list
2010-10-15 09:23:18 +00:00
97576cd51b
Fix for [ #22250 ] Retopo projects to the wrong object when multiple objects are behind.
...
* Scaling of objects wasn't properly taken into account when projecting the verts.
2010-10-07 10:57:21 +00:00
8a4fe62843
misc fixes found with clang's static checker.
2010-10-07 10:04:07 +00:00
8df244f20d
images bigger then 32k no longer crash blender, use unsigned int for image size rather then short.
...
also check if jpeg fails to allocate an imbuf.
2010-09-28 10:03:56 +00:00
f32a35fd9d
apply rna naming for ToolSettings
2010-08-18 03:24:52 +00:00
d1759639dc
- remove unused includes IMB_*, BIF_* & MEM_*
...
- remove MEM_guardedalloc.h from header files (include directly)
2010-08-16 05:46:10 +00:00
3e58edda3a
remove unused includes
2010-08-08 13:03:07 +00:00
708ef64663
include cleanup, no functional changes
...
- removed DNA_brush_types.h from DNA_scene_types.h (and some other similar cases)
- removed DNA_wave_types.h (never used)
- removed Main.wave
2010-08-04 04:01:27 +00:00
41a6602547
2.5: remove user preferences to always snap for translate/rotate/scale,
...
with new behavior of the snap setting in the 3d view these are no longer
necessary.
2010-07-12 11:17:42 +00:00
fba7ebcbea
replace add_v3_v3v3() --> add_v3_v3() where possible
2010-04-21 12:27:48 +00:00
d010dae91b
[ #21767 ] Project Vert. on the Surf. of Other Obj. enabled causes crash when trying to Crease some edges
...
Don't want to project for Crease (and others).
2010-03-28 13:59:33 +00:00
f743b583bf
more lint includes
...
Only source/blender/editors/ dir, should not give errors on different platforms
Only removing: UI_*.h, ED_*.h, WM_*.h, DNA_*.h, IMB_*.h, RNA_*.h, PIL_*.h
2010-03-23 14:09:09 +00:00
42ac4a3e7d
Fix syntax for ID keyword.
2010-03-21 01:14:04 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
845136ea13
Wrong argument for internal snap call.
2010-02-03 20:49:05 +00:00
5cdec97dc5
Temporary work around for [ #20768 ] Project Snap Broken
...
Don't snap to editmesh when project is on (that means you can't retopo to the same mesh). Again, that's a temporary work around.
2010-01-31 17:50:42 +00:00
2ed547be4d
bugfix [ #20743 ] crash on box select and grab with this .blend
2010-01-20 17:02:24 +00:00
2a785e8fae
Snap options were reset too often, discarding all user options.
2009-12-10 22:07:33 +00:00
b4d8d51a26
Fix for bug #20307 : snapping in uv editor is related to objects origin.
...
Also updated image window header to use snap element property.
2009-12-09 17:32:54 +00:00
e4a97d67b6
Make toggle and hold snap method cohabit nicely.
...
Shift-Tab toggles the global toolsetting snap settings (both in and out of transform).
Holding down Ctrl inverts the snap setting in transform (turns it on when global snap is off and vice versa).
Ctrl-Shift-Tab to select snap mode (only outside of transform for now).
For old (pre 2.5) behavior, just keep global snap off and use Ctrl.
NOTE: transform modal events for snap have change a bit, saved keymap might not work anymore.
2009-12-03 19:18:00 +00:00