Commit Graph

26636 Commits

Author SHA1 Message Date
Campbell Barton
64ff9d6de4 fix to allow [#24009] to be fixed.
WM_operator_poll() could fail in cases WM_operator_name_call() would succeed because calling the operator would setup the context before calling poll.
this would result in python raising an invalid error or menu items being greyed out.

now python can also check with an operator context:
  bpy.ops.object.editmode_toggle.poll('INVOKE_SCREEN')
2010-11-04 12:59:03 +00:00
Brecht Van Lommel
0e81723683 Fix #24531: UV editor: setting rotating/scaling pivot with [ , ] [ . ] not working.
Patch by M.G. Kishalmi, thanks!
2010-11-04 11:45:30 +00:00
Brecht Van Lommel
e8f08c612b Fix #24523: deep shadows are rendered although object's shadow casting is disabled. 2010-11-04 11:41:05 +00:00
Campbell Barton
e32a81cba2 workaround/fix [#24451] Motion path not automatic recalculating + locking obj moving
Comment from source...
			/* re-calculating the frame positions means we loose our original transform if its not auto-keyed [#24451]
			 * this hack re-applies it, which is annoying, only alternatives are...
			 * - dont recalc paths.
			 * - have an object_handle_update() which gives is the new transform without touching the objects.
			 * - only recalc paths on auto-keying.
			 * - ED_objects_recalculate_paths could backup/restore transforms.
			 * - re-apply the transform which is simplest in this case. (2 lines below)
			 */

Martin, if you think this workaround is unacceptable, then automatic recalculating of paths after transform should probably be disabled since it looses data on non transform un-keyed values.
2010-11-03 23:49:56 +00:00
Campbell Barton
dba1904f65 bugfix [#24518] Blender wont compile with -Wall -Werror and COLLADA support
fix included in report from Martijn Berger (mberger)
made some small changes.

- use ints rather then unsigned long for printing, values are not likely to be very large.
- CMake remove strict flags from collada build dir since I had warnings in the collada headers.
- added xml2 to collada libraries else I couldnt get collada building.
2010-11-03 22:44:39 +00:00
Campbell Barton
ce3b49742d fix for #24428, commit r32757 broke menu bar display for some users [#24454] (but not me for some reason).
For now revert most of r32757.
2010-11-03 22:11:17 +00:00
Campbell Barton
81fe9d2d04 workaround [#24392] 2d Image paint editor: no clone/smear/soften tools etc
the brush system matches the brush mode with the object mode, but this doesn't work for 2D image view paint.
since the poll() function doesnt have access to the context, for now just check if no paint modes are active, default to texture paint.
2010-11-03 21:23:02 +00:00
Janne Karhu
ee4b32c41a Fix for [#21958] Dupli group doesn't show up if linked on a layer that is different from the group layer
* Object layer flag was set too soon for group duplication.
2010-11-03 16:51:25 +00:00
Janne Karhu
57fd35ae26 A few texture node properties still had old rna names in draw code. 2010-11-03 15:30:24 +00:00
Sergey Sharybin
b350954501 [#23095] If no camera is present, a render starts but does nothing, and we have no "No camera" warning
Improve camera checking and move it before starting render jobs
2010-11-03 13:10:09 +00:00
Campbell Barton
1f2469d992 bugfix [#24508] Render and changing scenes crashes.
The scenes 'Render' is kept by blender while blender runs but the callbacks were not cleared when the render was done.
In this case the callback would reference a freed render job.

This isn't normally a problem because on re-rendering new callbacks are set, however the sequencer can render a previously rendered scene without setting up callbacks.
Simple fix is to to dummy callbacks applied onto the scenes 'Render' struct once its finished.
2010-11-03 11:14:02 +00:00
Campbell Barton
c31536fc53 bugfix [#24445] NLA reverse option flickers
UnMapping the reversed NLA strips timing was incorrect.
2010-11-03 08:46:14 +00:00
Campbell Barton
fe8d5b81b0 use c90 compatible static initializers. 2010-11-03 06:31:53 +00:00
Campbell Barton
de8e066a1c bugfix [#24505] Python command bpy.ops.transform.rotate(...) does not follow axis=(...) attribute
the axis was being constantly re-initialized from the view.
2010-11-03 04:38:07 +00:00
Campbell Barton
3db9233ae5 bugfix [#24483] Link/Append File Browser Typo 2010-11-03 03:45:09 +00:00
Campbell Barton
44f3f03f02 paint/face mask lasso select was checking for uv coords, which isnt needed, also make a mistake on this check last commit. 2010-11-03 02:50:05 +00:00
Campbell Barton
bcd2d60557 added metaball lasso select. 2010-11-03 02:28:11 +00:00
Campbell Barton
6b767b8018 fix [#24499] Consistency Issue with LassoSelect/ExtendOption
Added extend option to lasso. 

also...
- selecting bones wasn't checking their layer of if they were hidden in a number of places.
- fixed memory leak.

small unrealed changes
- added PBONE_VISIBLE macro
- renamed functions used for paint selectoin from *_tface to paintface_*. sine they no longer have anything todo with tface's.
- removed scanfill include from BLI_blenlib.h, this is only used in very few places and quite specific.


Noticed lasso select is broken for metaballs and face mask mode but this has been the case for a while, will look into it next.
2010-11-03 01:56:02 +00:00
Campbell Barton
b9c3bfa053 bugfix [#24392] 2d Image paint editor: no clone/smear/soften tools etc 2010-11-02 22:04:41 +00:00
Campbell Barton
1c5f72f273 - remove BLANK* from rna icon enum, would string search this list for every python icon button call, enum from 818 down to 444.
- remove unused space image members
2010-11-02 21:43:47 +00:00
Janne Karhu
09435ec149 Oops, particle collisions didn't take simulation subframes into account at all.
* This caused nearly all particles to leak through the collision surface if simulation subframes were used and the collision object was moving.
* In addition to fixing this I also did some more cleanup of the collision code and refined some of the comments.
2010-11-02 21:16:41 +00:00
Janne Karhu
130088300b Fix for [#24501] Apeend object with cloth sim from another file crash. 2010-11-02 15:21:43 +00:00
Campbell Barton
369a5cc29e fix for compiling with the c90 standard, support for non-static variable initializers is a c99 feature. 2010-11-02 13:12:30 +00:00
Brecht Van Lommel
5d7ed88f17 Fix #24436: GLSL + Node material gives wrong color. 2010-11-02 12:18:49 +00:00
Brecht Van Lommel
f3e3d59f04 Fix #24435: GLSL 3D view lacks refresh on node setups, patch by Lukas Toenne. 2010-11-02 11:41:25 +00:00
Campbell Barton
342e79461b bugfix [#24398] Select Nth
- use first selected if non active (clears confusion since this isn't at all clear)
- dont take unselected into account when calculating connectivity, would mess up in many cases.
2010-11-02 11:14:04 +00:00
Thomas Dinges
55ad862386 UI:
* Sampled Motion Blur Panel missed check for compatible engines, causing the panel to appear in Game Engine and Netrender as well.
2010-11-02 11:10:21 +00:00
Sergey Sharybin
5fb6c942b7 Fix #24485: Applying scale to multires object end up in a blender crash
Fixed multires_apply_smat to work properly with different current and
total subdivision levels.
2010-11-02 10:55:49 +00:00
Campbell Barton
f130d4c0a7 bugfix [#24455] Scene is left at last rendered frame from rendering an animation 2010-11-02 09:34:32 +00:00
Thomas Dinges
ca3ade6ac4 Patch [#24497] Fix for [#24484] Right Ctrl for snapping by Alexander Kuznetsov. Thank you!
This fixes [#24484] Right Hand Ctrl key none functional for snapping?
2010-11-02 09:04:57 +00:00
Campbell Barton
8221ed36d0 patch [#24496] Fix for exporting animations to OBJ format.
from Keith Astoria (kastoria)
2010-11-02 04:12:00 +00:00
Campbell Barton
8503bcde23 bugfix for exporting an FBX animation for an object that was the child of an armature deformed mesh. 2010-11-02 01:12:00 +00:00
Campbell Barton
0e588cbf10 use __slots__ for fbx exporter classes, no functional change. 2010-11-02 00:39:07 +00:00
Guillermo S. Romero
562731fc12 Recommit sharp font optional code as all Freetype should be above 2.1.10 now.
If still fails, check & update Freetype (OS one or Blender's lib/).
2010-11-01 23:26:04 +00:00
Guillermo S. Romero
2cef9203ba Add PREFIX support to makefiles. 2010-11-01 23:17:58 +00:00
Brecht Van Lommel
aef7d52ea7 Fix #24464: missing icons. It looks like there were some icons still named
from the 2.4 them but they were never in the 2.5 theme, so marked as BLANK
now.
2010-11-01 22:28:58 +00:00
Campbell Barton
7e913f25c2 throw an error is PREFIX isnt defined on X11 systems. defaults to /usr/local 2010-11-01 22:26:56 +00:00
Brecht Van Lommel
6ee21ceefb Fix #24489: decimate modifier: undecimated is "ratio 1.00%".
Patch by Emil Brink, thanks!
2010-11-01 21:53:35 +00:00
Brecht Van Lommel
5ef1cf4b19 Fix for some enum property identifiers, that were not using upper case
with underscore, or were simply not set correctly after code copy/paste.
2010-11-01 21:45:38 +00:00
Campbell Barton
010106a1f6 [#24491] not possible to create a new Rendering preset than "add render preset.py"
- Setting operator properties was broken because of bpy_types.py meta-classing (surprising this wasn't noticed before!)
- Presets now use a dialog with an OK button.
- Presets use a check function on the filename so invalid chars are replaced editing.
- Submit docs operator was broken.
2010-11-01 21:07:25 +00:00
Peter Schlaile
f890b00851 Sequencer: fix for the fix of: #23318
also known as: broken multicam strip caused by other fix.

Calculated render_size where it belongs (within the glow effect) and 
restored old functionality.

also: renamed render_size to preview_render_size at all relevant places, 
where the naming wasn't used correctly.

Hopefully it's now a little bit more clear. 

render_size := render size from scene (just rescales width/height)
preview_render_size := preview render size from sequencer preview, 
  controls the resolution and the use of sequencer proxy sources
2010-11-01 18:55:12 +00:00
Peter Schlaile
1b18ea5823 == FFMPEG ==
This fixes a rather subtle seeking issue with ffmpeg and Sony 
XDCAM-footage.

Problem is: MPEG2 streams within an MP4 container can contain a start 
time - at several places. There is a starttime within the video 
and audio streams and one within the container.

FFMpeg commandline tool only uses the container starttime and we used 
the stream starttime. 

The world would be a better place, if those two timestamps always match 
up, since in XDCAM-footage those two starttimes differ in 4 
frames - and the container has the right one.

We now always use the container start time as ffmpeg commandline tool 
does (in the hope, that there is a good explaination for this and this 
is the right thing(tm) to do).

I tested this also with HDV footage, which seems to work with the new 
code, too.

Additional fix: disabled seek_by_bytes again, since it will only work 
correctly, if ffmpeg guessed the HDV bitrate right (which it doesn't). 
If you have seeking issues with HDV and have an older version of ffmpeg 
installed, please upgrade, newer versions have some fixes in them.
2010-11-01 18:13:10 +00:00
Janne Karhu
3a8c37bb24 "Fix" for [#22537] motion blur render result incorrect when full sample anti-aliasing is selected
* FSA and motion blur can't work nicely together the way they're currently implemented, so I disabled this in the ui and code.
* FSA is used if both are selected.
* Also changed the name "Full Sample Motion Blur" to "Sampled Motion Blur" to avoid confusion with full sample anti-aliasing.
2010-11-01 13:51:11 +00:00
Luca Bonavita
726e6d8530 == blender file format ==
- added a readme so that it's easy to understand how to use the py files.
- fixed typos in the usage message.
2010-11-01 13:27:33 +00:00
Campbell Barton
e40b4d80c6 improvement to axis/angle gimble conversion added last commit. fixed flipping problems and enabled for pose bones. 2010-11-01 11:50:15 +00:00
Thomas Dinges
a55627339c Temporary revert recent changes in blf_glyph.c until its fixed.
>> Compile failure on windows platform (see ML for Errors).

SVN Revert of Revisions: 32805, 32804 and 32802
2010-11-01 10:48:48 +00:00
Campbell Barton
08fbe28464 bugfix [#24480] Axis Angle + manipulators: bad behaviour 2010-11-01 10:29:05 +00:00
Thomas Dinges
84a3282933 Patch: [#24479] fix for bug 24474, by Anthony Edlin. Thanks!
This fixes [#24474] Pressing <Shift Alt A> or clicking "Play Animation ... reverse = True" does not play animation backwards
2010-11-01 10:22:46 +00:00
Campbell Barton
daa4feaaea bugfix [#24477] Can easily create bones with duplicate names
- fixed this error 7 different functions (deform groups, uv layers & similar).
- support for numbers over 999.
- renamed splitIDname() to BLI_split_name_num(), moved to BLI_path_utils
2010-11-01 07:19:41 +00:00
Campbell Barton
8bbcef4c7a bugfix [#24449] User Preferences - Interface - Manipulator 2010-11-01 02:22:20 +00:00