Commit Graph

49420 Commits

Author SHA1 Message Date
Tamito Kajiyama
295976b779 Fix for emitted objects of a particle system not rendered properly.
Problem report by octane98 in the BA Freestyle thread with a sample .blend file.  Thanks!
2012-06-11 22:20:46 +00:00
Campbell Barton
7977078227 fix for using freed memory with mask point slide
-- This line, and those below, will be ignored--

M    source/blender/editors/mask/mask_ops.c
2012-06-11 20:58:16 +00:00
Campbell Barton
234a0d8c51 fix for crash drawing grease pencil attached to a tracking marker.
also fix for use of uninitialized variable for ED_clip_point_undistorted_pos().
2012-06-11 20:50:57 +00:00
Ove Murberg Henriksen
995b9d5e8d style cleanup fixed naming 2012-06-11 20:32:34 +00:00
Sergey Sharybin
178feecfcd Couple of changes to keying node:
- Switch from gaussian-bokeh blur to mean-value which is much faster
  and from matte's quality behaves not worse than gaussian-bokeh.
- Added Edge matte output so areas where black/white clipping happens
  could be easily controlled.

  Currently not sure if it's possible than operation returns two
  buffers, so now implemented as separate clipping operation call
  with specific options.

- Changed logic of detecting edges - check if most pixels within
  kernel are different fits some tolerance interval.

- Added two extra options which controls how edges are detecting:

  * Edge Kernel Radius defines radius of kernel within pixel's value
    is checking.
  * Edge Kernel Tolerance defines maximal difference between value
    of current pixel and it's neigbours which are trated as belng to
    the same plane )background of foreground)

Unfortunately, value for this two sliders for existing files shall
be tweaked manually. Default values are 3 for radius and 0.1 for
tolerance.
2012-06-11 19:31:51 +00:00
Ove Murberg Henriksen
340e156a2f Bugfix: No longer crashes when there is no dverts on target mesh from before. 2012-06-11 19:31:22 +00:00
Campbell Barton
21e4b12e7a safety check when making a node local- make sure its already in the node tree. 2012-06-11 19:12:45 +00:00
Bastien Montagne
cf0d350b51 Fixing first part of [#31760] Assignments not working properly for Object.dimensions
Problem was in fact that non-linear-contiguous axis assignement was broken (i.e. location.xy would work as expected, but location.xz would only affect .x part)... Now all possibilities should work fine.

Did not try to fix the problem specific to obj.dimension (when assigning multiple times to this array, only the last one is taken into account - in fact, a simple print() shows that assigning to dimension is not taken into account immediately), not sure whether this is normal behavior, or if we need a specific "update" of some kind for this prop?
2012-06-11 18:58:34 +00:00
Campbell Barton
c945e03c75 rna read/write access to ...
node_tree.nodes.active
2012-06-11 18:43:48 +00:00
Campbell Barton
e376cbedaf minor changes to jpeg2k saving based on reading v1.5 source examples. 2012-06-11 18:43:16 +00:00
Campbell Barton
28fa6da77e add missing node RNA booleans. 2012-06-11 18:16:26 +00:00
Antony Riakiotakis
854502d2e3 Add user preference "GPU Mipmap Generation" under the System/OpenGL
subpanel to calculate image mipmapping on the GPU, saving upload and
calculation time. Default is off just in case.
2012-06-11 16:23:10 +00:00
Lukas Toenne
edecf49d84 Fix for node 'make group' operator in combination with frame nodes. When a selected node is attached to an unselected frame, the parent pointer would end up pointing to a different ID data block. 2012-06-11 15:28:45 +00:00
Campbell Barton
5248ec57d9 minor fixes
- new compositor could use uninitialized var
- profile conversion could use uninitialized var
- set better warnings for clang+cmake.
- remove picky warnings from sphinx doc gen shell script.
2012-06-11 12:13:41 +00:00
Sergey Sharybin
71a7fb6286 Draw grease pencil after masks
Looks like drawing grease pencil before masks was affecting projection matrix
somehow which made masks invisible

Anyway, drawing GP actually shall happen after masks to match how it works
in other areas.
2012-06-11 11:54:16 +00:00
Sergey Sharybin
84309514f1 Merging r47727 through r47739 from trunk into soc-2011-tomato 2012-06-11 11:43:06 +00:00
Sergey Sharybin
6ab087ff99 Scale search area when doing planar tracking
Helps keeping features tracked when there's large scale happens
without need to manually re-adjust search area.

Currently using factor of pattern's boundbox scale, but probably
could be done in more accurate way?
2012-06-11 11:40:54 +00:00
Sergey Sharybin
6674106d30 Fixed issue with disappearing Clip/Track menu from GP panel in Clip Editor
caused by switching to Track GP without having active track.
2012-06-11 11:40:36 +00:00
Joshua Leung
2a4a8fd43e Cosmetic fixes
* PoseBone struct didn't have an icon
* Comment fixes (stil referenced IPO's)
2012-06-11 11:11:11 +00:00
Nicholas Bishop
eba2f2320c Fix invalid array index in armature_deform_verts().
Check that the def_nr is non-negative before using as index.

Fixes bug [#31700] Crash when opening .blend file on 64bit environment
2012-06-11 11:00:58 +00:00
Sergey Sharybin
af1907ed5d Pardon, for sure gaussian blur should be default for now, so it wouldn't
affect on current compositor's setup.

And to enable new test blur that line should be commented.
2012-06-11 10:31:24 +00:00
Sergey Sharybin
8ca5bbcc14 Fixed area of interest for black/white clipping, so now there should be no
artifacts in the boundaries of tiles.

Also added test blur operation which could potentially give better results
than gaussian blur for keying. Not user yet, to enable uncomment like
with USE_GAUSSIAN_BLUR in file COM_KeyingNode.cpp.
2012-06-11 10:25:28 +00:00
Nicholas Bishop
d214b14052 Add missing/incorrect selection flushes.
Added selection flush after loop cut, changed select_linked_pick's
flush to use the em selection flag.

Fixes bug [#31715] Cases where verts and edges are selected but not
relevant faces
2012-06-11 10:14:46 +00:00
Nicholas Bishop
a18b303a76 Fix incorrectly deleted elements in array modifier caps.
Add check for merging vertices into vertices that are themselves
marked for merge, was already done for array eleements but not end
caps.

Fixes bug [#31695] Array Modifier: End Cap fails if all vertices are merged

Also corrected some reversed assert arguments.
2012-06-11 09:41:08 +00:00
Campbell Barton
abfe63d8aa updates to context docs and add missing member to node context 'node_context_dir'. 2012-06-11 09:24:25 +00:00
Sergey Sharybin
075b35572e This node was never actually commited to svn. 2012-06-11 09:18:55 +00:00
Bastien Montagne
fccd8acb35 UI messages fixes... 2012-06-11 09:05:17 +00:00
Sergey Sharybin
7839e81ed5 Merging r47702 through r47726 from trunk into soc-2011-tomato 2012-06-11 09:00:11 +00:00
Nicholas Bishop
8015b7a4a5 Fix applying object transform to multires objects.
Bug [#31785] Applying a transform to an object with multires weird result

Was reading interleaved coord/mask data incorrectly since paint mask
merge. Fixed by using two separate CCGKeys.

Some additional code cleanup: deduplicate multires tangent matrix
calculation.
2012-06-11 08:37:35 +00:00
Jeroen Bakker
8a5252c1cb * Blur node had some irregularities at the edge of the screen
only visible when doing large size blurs.
 also solved the catcom/mitch filter that didn't work at low/medium quality

 PS never use BokehBlur Gausian filter as it is 99%+ identicat as non bokeh <= top for sergey- :)
2012-06-11 08:28:04 +00:00
Campbell Barton
31c8f4fbd3 fix for crashes in smooth-curves and clean-curves fcurve operators - missing NULL checks. 2012-06-11 08:15:37 +00:00
Sergey Sharybin
638211d4e6 Move all marker placement into a single omp critical section
Could give small speadup.
2012-06-11 08:06:42 +00:00
Campbell Barton
05c48fe7d8 quiet 'unused' warning. 2012-06-11 06:51:01 +00:00
Joshua Leung
61fe88aedc Bugfix [#27886] Transform constraint maps wrongly with negative scale
AFAIK, it is impossible to determine exactly which axes may have negative
scaling values from a 4x4 matrix (which is the underlying cause of this bug).
However, we can figure out if there is some negative scaling going on in that
matrix (i.e. one of the axes has negative scale). So, the fix here is to
negatively scale everything if we detect this happening.

WARNING: do not rely on being able to accurately detecting positive/negative
values for more than a single axis per bone controller. Weird results may occur.
You have been warned.
2012-06-11 05:05:05 +00:00
Joshua Leung
c2e55ae8e3 Bugfix [#28962] Changing actions via undo/delete all keyframes lacks UI refresh
Slightly hacky fix to get updates working for Action Editor header when there
are changes of the active action (via undo and/or deleting all keyframes at
once). Since the action referenced by the editor only gets updated when anim
channel filtering (e.g. as a result of the channel syncing operation) is
invoked. Added comments noting where these updates actually occur
2012-06-11 04:13:39 +00:00
Joshua Leung
a050d23133 Bugfix: Crash in Sequencer when trying to undo after using Grease Pencil
Grease Pencil data was not getting correctly relinked after file reload (for
undo)
2012-06-11 03:03:36 +00:00
Joshua Leung
be7d15cc2b Commented out expand_bones(), as this wasn't actually doing anything other than
wasting time traversing the list of bones in the Armature
2012-06-11 02:23:26 +00:00
Joshua Leung
26164634f8 Build-system fix (for r.47710)
Need add blenfont to list of include directories for sequence editor buildfiles.
Was causing build errors on OSX. Thanks Zavigny (IRC report)
2012-06-11 02:01:48 +00:00
Joshua Leung
128e2cb125 Grease Pencil Eraser - Numpad +/- and Scrollwheel Up/Down to change radius of
brush while erasing

This makes it easier to change the size of the brush without having to jump out
to the User Preferences and back
2012-06-11 01:27:56 +00:00
Joshua Leung
6486d7b35d Grease Pencil - Eraser is drawn with the circle/brush indicator again 2012-06-11 01:09:25 +00:00
Joshua Leung
c711665ce2 Code cleanup - Removing/commenting out various bits of legacy cruft related to
old Grease Pencil stuff
2012-06-11 00:46:22 +00:00
Joshua Leung
0df68aacb1 Grease Pencil - Support for Grease Pencil in the Sequence Editor preview/image
space works again

This commit restores the support for using Grease Pencil in the Sequence Editor
image preview region, making it possible to scribble on footage for review
purposes again. Due to internal changes in how the Sequencer handles the image
drawing for this stuff (i.e. it is now fully based on View2D instead of trying
to implement its own little crazy offset+zoom stuff), a lot of the old code for
handling those offsets is no longer needed. Instead, one of the "standard" cases
is now used, and works quite well.

Bugfixes:
* View-space Grease Pencil drawing was done in wrong place (before view2d
restore)
* Grease Pencil entry in RNA had wrong/missing type

Credits:
* DingTo - initial patch/attempt at restoring support
* Aligorith - solved the "offset problems"
2012-06-11 00:21:50 +00:00
Dan Eicher
f305261f14 OUTLINER_OT_material_drop -- Drag & Drop materials onto objects in the outliner
Adds the material at materials + 1 unlike the DnD view3d one which replaces the first one
2012-06-10 22:22:26 +00:00
Campbell Barton
869efe927c style cleanup 2012-06-10 22:13:17 +00:00
Tamito Kajiyama
8135cc9f95 Merged changes in the trunk up to revision 47700.
Conflicts resolved:
source/blender/blenkernel/BKE_main.h
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/intern/library.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/interface/resources.c
source/blender/makesdna/DNA_ID.h
source/blender/makesdna/DNA_action_types.h
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/SConscript
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_main.c
source/blender/makesrna/intern/rna_main_api.c
source/blender/windowmanager/WM_types.h
2012-06-10 20:50:43 +00:00
Campbell Barton
51e456a455 correct float vector sizes 2012-06-10 20:31:01 +00:00
Campbell Barton
113968aa15 quiet warning 2012-06-10 20:20:37 +00:00
Campbell Barton
9c504f6db2 correct freeing C++ arrays. 2012-06-10 20:14:15 +00:00
Campbell Barton
87abf43251 svn merge ^/trunk/blender -r47698:47701 2012-06-10 20:01:48 +00:00
Campbell Barton
51d9bf725d style cleanup 2012-06-10 19:59:02 +00:00