Commit Graph

32674 Commits

Author SHA1 Message Date
Monique Dewanchand
82bad4bd6c Refactoring of tiles opencl implementation:
- Moved methods from NodeOperation to OpenCLDevice
- Added check on Nvidia for local size
2012-06-20 20:05:21 +00:00
Campbell Barton
cf129d8cb5 avoid calls to BLF_height_default in a loop calling with the same value, also quiet warning. 2012-06-20 19:23:12 +00:00
Campbell Barton
850d734147 make mask handles draw with an outline - when outline option is enabled. 2012-06-20 18:46:18 +00:00
Campbell Barton
dc7770d1a1 fix for use of 2 uninitialized vars in the tiles compositor. 2012-06-20 17:35:51 +00:00
Campbell Barton
81468b5b09 fix for error with sequencer stip text drawing - was using unclamped handle sizes for the text bounds, this could be very wrong with long strips. 2012-06-20 17:10:40 +00:00
Jeroen Bakker
bbe3c2946a * reset OpenCL innerloop size to 32. 2012-06-20 17:04:40 +00:00
Campbell Barton
a744fed46c style cleanup 2012-06-20 16:43:48 +00:00
Campbell Barton
ea122cf59b move the frame length to the end for sequence drawing (mango request, since often the name is clipped out entirely so only then length is seen) 2012-06-20 16:34:15 +00:00
Brecht Van Lommel
14e4630afc Fix crash in compositing nodes with a node group with missing datablock, can
happen with library linking and missing files.
2012-06-20 14:57:39 +00:00
Sergey Sharybin
aa30e20272 Fix #31852: Sequencer duplicate cant move strips on Y axis in a meta
Issue was caused by some stuff happenign in wm_operator_finish() which uses
to somehow restore changes made by transformation invoke function.

Solved by not calling translation operator directly from duplication operator
(which is in fact really tricky) and use macros instead. This macros calls
duplication operator which simply duplicates strip, and then calls translation
operator.
2012-06-20 14:20:03 +00:00
Campbell Barton
72f7ab441d removing from group now shows menu to select group to remove. 2012-06-20 14:13:22 +00:00
Sergey Sharybin
6b695762ea Added command line argument --debug-value
Useful when needed to set debug value (G.rt) on blender's startup
2012-06-20 13:40:43 +00:00
Sergey Sharybin
a550b6fe39 Silent masks "alloc new deform spline" debug print 2012-06-20 13:32:30 +00:00
Sergey Sharybin
906a635bd0 Store parent's initial position when setting mask's parent from the interface 2012-06-20 11:16:51 +00:00
Sergey Sharybin
470ad6fc0e Do not check result of BKE_tracking_marker_get -- it shall always
return valid marker. If not -- let blender crash, because that means
something went really bad and silencing this isn't good idea.

Also made mask parenting to tracking data aware of clip's start frame.
2012-06-20 10:54:56 +00:00
Sergey Sharybin
b07edbc6d6 Grease pencil and manual calibration weren't aware of clip start frame 2012-06-20 10:42:41 +00:00
Sergey Sharybin
4b955a60ed Cleanup up space clip API:
- Remove clip/mask specific size/aspect getters, they shall just
  use the same size/aspect ratio.
- Made size getter (and some other public functions) accept context
  instead of SpaceClip. Currently only SpaceClip is being get from
  this context, but later it'll be helpful when adding support of
  editing mask without opening clip in clip editor (in this case
  using render resolution for mask would be ideal, but this
  requires knowing scene in size getter).
- Rearrange some functions in clip_editor.c for easier navigation
  in the file.
2012-06-20 10:28:51 +00:00
Campbell Barton
586f202eac minor speedup for the glare compositor node
- pre calculate the UV dot product
- use image width and height converted to floats in the inner loop.
2012-06-20 08:11:59 +00:00
Nicholas Rishel
fc1164c223 Fixes [#31577] Select N-th vertex/face/edge doesnt work
http://projects.blender.org/tracker/index.php?func=detail&aid=31577&group_id=9&atid=498

Also solves both TODOs in the commented code.

Loop select now calls mouse_mesh() to handle setting an active vertex/edge/face.
2012-06-20 07:31:19 +00:00
Campbell Barton
358f7d40b6 style cleanup: use TRUE/FALSE for ui align args. 2012-06-19 23:08:16 +00:00
Sergey Sharybin
a8f23a96a4 KeyingScreen would now deal properly with clips with Start Frame != 1 2012-06-19 17:57:51 +00:00
Bastien Montagne
8796c3eff1 Fix part 2 of [#31840] Quick Explode Bugs related to it's fade option.
This in fact had nothing to see with this operator or its fade option, reports were simply not shown when repeating an operator.

Carefully checked/tracked all calls to wm_operator_exec and WM_operator_repeat, and could not see any reason why this was this way, so I disabled this. Very easy to undo in case ugly problems arize (but I really do not expect any!).
2012-06-19 16:26:01 +00:00
Sergey Sharybin
4f044f4ec1 Changes in clip editor's public api to make it's more clear
whether getting of some property happens or this property is
being changed.

Also made it more clear whether affecting property belongs
to clip or mask datablock.
2012-06-19 14:26:29 +00:00
Sergey Sharybin
14a68d3a5f Mark context as const when it's possible and avoid typecasts from const bContext* to bContext* 2012-06-19 14:09:44 +00:00
Jeroen Bakker
7f2d1c01cd Implemented Preview of defocus to set the quality of the node to Low
increased the inner loop of opencl
2012-06-19 13:52:41 +00:00
Campbell Barton
cf2ae76347 fix for uninitialized memory use in the new compositor. 2012-06-19 13:20:06 +00:00
Jeroen Bakker
bb7b8bed8a * fixed defocus background blurin... 2012-06-19 09:52:52 +00:00
Jeroen Bakker
340489d29f * Fixed brightness (was introduced by optimalization)
* added threshold functionality

still have to fix the background bleeding. not sure why it happens.
needs some revisites.
2012-06-19 08:48:45 +00:00
Lukas Toenne
fbbd64a118 Fix #31646, somehow a 2.62 file output node can have NULL storage pointer. Not sure how this can happen, but added checks in do_versions to make sure the file doesn't crash. Paths will probably have to be reset though. 2012-06-19 07:46:45 +00:00
Jeroen Bakker
77dde3db08 * Enabled OpenCL for the compositor
Tested on:
   - Windows32 ATI V5800
   - Linux64 GTX360M
   - Linux64 Quadro FX360M

The ATI is much more stable as the Nvidia platforms. We have tested
a different scheduling that will speed up for AMD (not checked in yet)

It compiles on all platforms, but fails on our MAC book Pro.
Black lines are produced on the top of a opencl workgroup.

By using localworksize we were able to remove these lines, but 
are not satisfied at this solution (so will not check this in yet).

Please everyone check if it works on your configuration and add 
Bugs when needed.

To test you need to add a BokehBlur to your scene and enable the
OpenCL flag in the property panel.
2012-06-18 21:20:11 +00:00
Nicholas Bishop
c9e98e848d Fix for subsurf oscillations along creased boundary edges
Changed the "exterior edge interior shift" section of subsurf calc to
always treat boundary edges the same, regardless of sharpness. We
should revisit subsurf creasing to see if more consistent and
predictable results are possible, but for now this a non-intrusive way
to avoid wavyness along the boundary.

Fixes bug [#31864] Artifacts when using Subsurf+Crease on plane
http://projects.blender.org/tracker/index.php?func=detail&aid=31864&group_id=9&atid=498
2012-06-18 20:50:35 +00:00
Nicholas Bishop
fd36fb8f63 Code cleanup: use float* rather than void* in subsurf calculation
No functional changes.
2012-06-18 20:50:25 +00:00
Bastien Montagne
0b7c9f11f2 Minor UI message fixes. 2012-06-18 20:22:23 +00:00
Bastien Montagne
1f02633d7e Fix for compiling with all warnings as error (commenting out unused vars). 2012-06-18 19:37:01 +00:00
Sergey Sharybin
c4e386c772 DO not reset clip's focal length when changing path to footage 2012-06-18 18:22:49 +00:00
Nicholas Bishop
58befeba60 Fix for sculpt undo updating hidden rather than coords.
Fixes bug [#31858] Undo + sculpt mode, which exposed the bug by having
two objects use the same mesh data.

The rebuild variable was initialize to true, so multires data was
getting marked as having GridHidden modified rather than coords
modified.
2012-06-18 17:49:31 +00:00
Sergey Sharybin
c83805139d Patch #31755: fix missing redraw in space_buttons when grouping objects (CTRL+G)
When you group objects with CTRL+G and have the properties
space --> object tab --> groups panel visible there is a redraw
missing.

Patch by Philipp Oeser. Thanks!
2012-06-18 17:07:26 +00:00
Lukas Toenne
0d89607899 Fix #31740, compositor overwrites images on frame scrubbing. Restored old compositor behavior which only saves images when doing an actual rendering (this was not implemented in Tile yet). 2012-06-18 16:23:16 +00:00
Sergey Sharybin
4b877e1f8b Some options used for "expert" x264 setup were removed from FFmpeg 0.11
Prevent crashes in cases when option can't be found.
2012-06-18 15:42:23 +00:00
Sergey Sharybin
bdfcc5c619 Fix #31825: 3D View Editor Header > Object > Game > Copy Properties affecting other commands.
Mark property to be copied/moved as SKIP_SAVE. That was giving the issues.
2012-06-18 14:44:16 +00:00
Sergey Sharybin
a42a5c90d5 Fix #31826: UV/Image editor paint image crash
Missed NULL check in own refactoring a while ago.
2012-06-18 14:08:54 +00:00
Sergey Sharybin
4598049851 Disable mouse slide to control offset and uniform pattern scale for now
This is nice to have, but requires better approach for visualization.

Any ideas? :)
2012-06-18 14:02:59 +00:00
Sergey Sharybin
fc5df9d634 Reverting changes made in r48030 by Campbell's request 2012-06-18 13:46:57 +00:00
Campbell Barton
2c3165fdc0 style cleanup 2012-06-18 13:01:24 +00:00
Brecht Van Lommel
76f79b030f Fix for recent bugfix, make old files with strand width fade 2.0 render same. 2012-06-18 12:49:05 +00:00
Brecht Van Lommel
57b8edc9fe RNA: add Area and Region window xy coordinates access. 2012-06-18 12:48:51 +00:00
Bastien Montagne
cc33934410 Fix for compiling with all warnings as error (commenting out unused vars). 2012-06-18 12:39:19 +00:00
Sergey Sharybin
35b3736b16 Fix #31856: movieclips.load(filepath=None) or value crash Blender
Disallow running PyUnicode_EncodeFSDefault for None type which seems
to be an issue on Windows.
2012-06-18 12:34:19 +00:00
Sergey Sharybin
0d64e050ea Reduce amount of deprecated symbols used from FFmpeg
This switches some areas of Blender which are related on FFmpeg stuff
from deprecated symbols to currently supported one.

Pretty straightforward changes based on documentation of FFmpeg's
API which symbols should be now used.

This should make Blender compatible with recent FFmpeg 0.11.

Should be no functional changes.
2012-06-18 10:29:11 +00:00
Sergey Sharybin
5e6e9bd616 Pardon, typo in own commit for SCons changes. Also added missed headers.
Should work now.
2012-06-18 09:52:41 +00:00