blender.git
7 years agoFix [#29737] Can't edit particle hair if particle count is 0.
Janne Karhu [Sun, 12 Feb 2012 00:43:57 +0000 (00:43 +0000)]
Fix [#29737] Can't edit particle hair if particle count is 0.
* Hair wasn't flagged as "done" if particle count was 0 before setting particles as hair, so particle edit mode didn't work.

7 years agoFix [#29530] Changing to particle mode could crash in some cases
Janne Karhu [Sun, 12 Feb 2012 00:32:31 +0000 (00:32 +0000)]
Fix [#29530] Changing to particle mode could crash in some cases
* If a baked particle didn't have any cached keys creating an edit path for it crashed.

7 years agoFix [#29265] Particle Instance: Create Along Paths + Children inconsistent with actua...
Janne Karhu [Sun, 12 Feb 2012 00:25:52 +0000 (00:25 +0000)]
Fix [#29265] Particle Instance: Create Along Paths + Children inconsistent with actual children hair particles
* Hair particle rotations weren't calculated properly for particle locations along a path and the "particle on path" calculations were not correct in many other ways too.
* Now the particle's location along a path is interpolated directly from the cached paths if it exist. These paths are always correctly calculated.
* Paths are now cached if a particle instance modifier using the particle system with the path option exists.

7 years agominor include cleanup, add GPL header (copied from BKE_animsys.h
Campbell Barton [Sat, 11 Feb 2012 19:43:06 +0000 (19:43 +0000)]
minor include cleanup, add GPL header (copied from BKE_animsys.h

7 years agoFix [#30136] Adding Sequence Plugin fails.
Bastien Montagne [Sat, 11 Feb 2012 16:08:45 +0000 (16:08 +0000)]
Fix [#30136] Adding Sequence Plugin fails.

Problem was in how file selector is called by the effect_strip_add operator invoke. WM_operator_filesel() is not suited, as it directly calls exec if filepath is already set, and sequencer_generic_invoke_xy__internal() will set that path unless otherwise told. So using rather the same way to do as the one used by the other "strip_add" operators...

7 years agotypo fix when a preset fails to run. (fail at failing)
Campbell Barton [Sat, 11 Feb 2012 15:49:25 +0000 (15:49 +0000)]
typo fix when a preset fails to run. (fail at failing)

7 years agoFix [#30122] "Tweak" mouse event values were not loaded from keymap files.
Bastien Montagne [Sat, 11 Feb 2012 14:50:26 +0000 (14:50 +0000)]
Fix [#30122] "Tweak" mouse event values were not loaded from keymap files.

The problem was, those values were not included in the event type agnostic event_value_items list, hence RNA keymap item creation just ignored them.

7 years agouse ValueError when vector/matrix multiplications sizes are not supported, was using...
Campbell Barton [Sat, 11 Feb 2012 14:27:36 +0000 (14:27 +0000)]
use ValueError when vector/matrix multiplications sizes are not supported, was using TypeError for mat*vec and ValueError for vec*mat.

7 years agofix for crash adding movie strips that were not a supported format.
Campbell Barton [Sat, 11 Feb 2012 13:19:25 +0000 (13:19 +0000)]
fix for crash adding movie strips that were not a supported format.

7 years agodont add the name field to theme presets for now.
Campbell Barton [Sat, 11 Feb 2012 12:23:23 +0000 (12:23 +0000)]
dont add the name field to theme presets for now.

7 years agoresetting the theme wasnt changign the panel header.
Campbell Barton [Sat, 11 Feb 2012 12:16:34 +0000 (12:16 +0000)]
resetting the theme wasnt changign the panel header.

7 years agoupdate gpl header in cmake files
Campbell Barton [Sat, 11 Feb 2012 04:05:00 +0000 (04:05 +0000)]
update gpl header in cmake files

7 years agoFix #30131: mac UI font corruption in release candidate, refined test for
Brecht Van Lommel [Fri, 10 Feb 2012 17:12:44 +0000 (17:12 +0000)]
Fix #30131: mac UI font corruption in release candidate, refined test for
ATI/Apple cards with broken non-power-of-two-textures missed some cards,
checked against list of GL_RENDERER values, hopefully complete now.

7 years agoDisable PDF doc since its giving errors with latex indentation.
Campbell Barton [Fri, 10 Feb 2012 15:00:55 +0000 (15:00 +0000)]
Disable PDF doc since its giving errors with latex indentation.

upload the zipped version of HTML docs instead.

7 years agobge font objects: fix for difference in size when object has a parent
Dalai Felinto [Fri, 10 Feb 2012 07:52:21 +0000 (07:52 +0000)]
bge font objects: fix for difference in size when object has a parent
for after 2.62 I would like to try if using doubles would help to increase the precision here.

Also now that the mipmap patch is reverted we may want to look at this problem from a different perspective.
RES could be calculated taking the object size in relation to the camera (i.e. size and distance, ignoring rotation).
That may solve both problems of wrong resolution and lack of smoothness.

For the time being users still need to use object.resolution to fine tune the rendered text.

7 years agoreverting commit [43876] Fix for aliased fonts in the game engine
Dalai Felinto [Fri, 10 Feb 2012 06:18:32 +0000 (06:18 +0000)]
reverting commit [43876] Fix for aliased fonts in the game engine

7 years agobugfix [#30127] alpha in FontObjects not working in blenderplayer
Dalai Felinto [Fri, 10 Feb 2012 05:10:52 +0000 (05:10 +0000)]
bugfix [#30127] alpha in FontObjects not working in blenderplayer

7 years agofix for presets reusing previous options (which broke preset add/remove)
Campbell Barton [Thu, 9 Feb 2012 13:02:22 +0000 (13:02 +0000)]
fix for presets reusing previous options (which broke preset add/remove)

7 years agoReset Use Active Clip for Follow Track constraints when linking empty to a track
Sergey Sharybin [Thu, 9 Feb 2012 10:24:44 +0000 (10:24 +0000)]
Reset Use Active Clip for Follow Track constraints when linking empty to a track

7 years agopatch from Jochen Schmitt to get blender building with gcc4.7
Campbell Barton [Thu, 9 Feb 2012 07:01:30 +0000 (07:01 +0000)]
patch from Jochen Schmitt to get blender building with gcc4.7

7 years agoStyle cleanup of gpu rst file.
Campbell Barton [Thu, 9 Feb 2012 06:38:54 +0000 (06:38 +0000)]
Style cleanup of gpu rst file.

7 years agoFix for hardcoded to scons rules python abi flags and wrong behavior
Sergey Sharybin [Wed, 8 Feb 2012 17:17:19 +0000 (17:17 +0000)]
Fix for hardcoded to scons rules python abi flags and wrong behavior
of python bundling on systems where python is installed to /usr/lib64

Now ABI flags are automatically detecting (by checking all available flags
and checking if there's include directory exists for flag).
Also, automatically set PYTHON_LIBPATH to /usr/lib64 if python
scripts are stored in this folder.
Bundling python on *nix platforms is now checks if python is installed
to lib64 directory and if it is, python will be bundled to lib64
folder instead of lib.

This will make building on openSUSE a bit less annoying

7 years agoFix #30004: cycles brightness/contrast node issues. The formula used did not work
Brecht Van Lommel [Wed, 8 Feb 2012 17:09:30 +0000 (17:09 +0000)]
Fix #30004: cycles brightness/contrast node issues. The formula used did not work
very well for colors that can be outside of the 0.0..1.0 range, giving +/- infinity
results.

Now we just use a simple linear contrast factor as proposed by Paolo Sourvinos, and
clamp values to be >= 0, and also make the parameters work more in the 0..1 range
instead of the 0..100 range, to be more consistent with other nodes.

7 years agoFix #30071: crash with cycles glsl, textures functions (which are stubs still)
Brecht Van Lommel [Wed, 8 Feb 2012 16:48:26 +0000 (16:48 +0000)]
Fix #30071: crash with cycles glsl, textures functions (which are stubs still)
got out of sync with node changes.

7 years agocorrect 2 sphinx warnings.
Campbell Barton [Wed, 8 Feb 2012 16:36:04 +0000 (16:36 +0000)]
correct 2 sphinx warnings.

7 years agoUse the same fancy compile output for .cc files as for .cpp files
Sergey Sharybin [Wed, 8 Feb 2012 15:54:00 +0000 (15:54 +0000)]
Use the same fancy compile output for .cc files as for .cpp files

7 years agoadd bake action into animation menu - this nifty operator wasn't available anywhere...
Campbell Barton [Wed, 8 Feb 2012 14:01:47 +0000 (14:01 +0000)]
add bake action into animation menu - this nifty operator wasn't available anywhere in the UI.

7 years agoFix for duplicated vertices in UV sphere when it's creating with large radius.
Sergey Sharybin [Wed, 8 Feb 2012 11:04:56 +0000 (11:04 +0000)]
Fix for duplicated vertices in UV sphere when it's creating with large radius.

Issue was caused by not enough threshold limit used for removing doubles.
Switched to adoptive threshold value calculation based on smallest length
of segments in meridians and parallels.

7 years agoMovie Clip Editor: manual calibration will now respect GP layer's hidden flag
Sergey Sharybin [Wed, 8 Feb 2012 09:40:34 +0000 (09:40 +0000)]
Movie Clip Editor: manual calibration will now respect GP layer's hidden flag

7 years agoFix #30102: Vertex and edge incorrect selections
Sergey Sharybin [Wed, 8 Feb 2012 07:20:49 +0000 (07:20 +0000)]
Fix #30102: Vertex and edge incorrect selections

Select Linked operator was setting Limit by Seams property automatically
depending on current selection mode. But this property only used to be
set to truth if selection mode is set to Face, in other cases this property
is being reused from previous operator run. This leads to incorrect
behavior of selecting linked in vertex mode after this operator was
used in face selection mode.

7 years agofix [#30090] Cloth modifier related crash when loading old file
Campbell Barton [Wed, 8 Feb 2012 05:20:23 +0000 (05:20 +0000)]
fix [#30090] Cloth modifier related crash when loading old file

own fault when adding int64 support. `void` type was being used to workaround a different bug in the ClothSimSettings struct.

7 years agoCorrect mathutils documentation, also correct some python spelling errors and add...
Campbell Barton [Wed, 8 Feb 2012 04:37:37 +0000 (04:37 +0000)]
Correct mathutils documentation, also correct some python spelling errors and add makefile target `check_spelling`

7 years agoFix #30081: the fix for #30026 related to rendering indirect/environment light
Brecht Van Lommel [Tue, 7 Feb 2012 21:04:10 +0000 (21:04 +0000)]
Fix #30081: the fix for #30026 related to rendering indirect/environment light
with material ambient zero broke backwards compatibility too much. The behavior
to have ambient zero affect things even if it is not used as a factor does not
make much sense but keeps things compatible. Now instead fixed the use of
uninitialized memory.

7 years agoFix #30061: cycles single render layer through python operator parameter not
Brecht Van Lommel [Tue, 7 Feb 2012 20:51:33 +0000 (20:51 +0000)]
Fix #30061: cycles single render layer through python operator parameter not
working.

7 years agoReturned back maximal value of bitrate. Higher values are actually makes sense with...
Sergey Sharybin [Tue, 7 Feb 2012 20:39:51 +0000 (20:39 +0000)]
Returned back maximal value of bitrate. Higher values are actually makes sense with DNxHD only.

7 years agoFix for wrong pixel format used for qtrle
Sergey Sharybin [Tue, 7 Feb 2012 20:39:40 +0000 (20:39 +0000)]
Fix for wrong pixel format used for qtrle

7 years agoFix #30089: crash with cycles viewport rendering while in text edit mode.
Brecht Van Lommel [Tue, 7 Feb 2012 18:08:15 +0000 (18:08 +0000)]
Fix #30089: crash with cycles viewport rendering while in text edit mode.
Cause was Object.to_mesh(), which could cause invalid memory access when
calling it on text objects in edit mode.

7 years agoFix #30049: cycles noise texture producing nan values with some
Brecht Van Lommel [Tue, 7 Feb 2012 17:32:01 +0000 (17:32 +0000)]
Fix #30049: cycles noise texture producing nan values with some
texture coordinates, due to int overflow.

Also minor tweak in shader code to avoid copying uninitialized
values, should have no effect though because they were not used.

7 years agoFix #30086: cycles background render printing same status text twice.
Brecht Van Lommel [Tue, 7 Feb 2012 17:22:47 +0000 (17:22 +0000)]
Fix #30086: cycles background render printing same status text twice.

7 years agoFFmpeg output fixes and small improvement
Sergey Sharybin [Tue, 7 Feb 2012 17:11:56 +0000 (17:11 +0000)]
FFmpeg output fixes and small improvement

Most part of this commit fixes issues with FFmpeg output with
currently supported codecs:

- avcodec_encode_video might return zero which doesn't mean error
  happened, but blender will handle this as error and will stop
  rendering to video file.
- Changing output video codec wouldn't update "expert" options
  set for video output which leads to some sideeffects like
  ignored Lossless option for x264 codec.

This fixes allowed to add QTRLE codec easily.

7 years agoFix #30076: RenderLayer area blocks mouse scrolling
Sergey Sharybin [Tue, 7 Feb 2012 16:53:14 +0000 (16:53 +0000)]
Fix #30076: RenderLayer area blocks mouse scrolling

In fact all list templates used to block mouse scroll. It's because mouse
scrolls list's scroll bar. But mouse scroll also used to be "eaten" even
if there's no scroll in list template.
This commit makes scroll even be ignored by list templates if there's
no scroll bar on list.

7 years agoFix [#30099] Wrong python path returned. "bpy.data.keys" instead of expected "bpy...
Bastien Montagne [Tue, 7 Feb 2012 15:14:08 +0000 (15:14 +0000)]
Fix [#30099] Wrong python path returned. "bpy.data.keys" instead of expected "bpy.data.shape_keys".

The "plural" name for ID_KE was wrong in idcode.c (bke), not matching the MainCollectionDef one used in rna_main.c.

Checked the others too, everything seems ok now.

7 years agoFix #30052: VSE: metastrips don't move with Extend (E)
Sergey Sharybin [Tue, 7 Feb 2012 14:27:08 +0000 (14:27 +0000)]
Fix #30052: VSE: metastrips don't move with Extend (E)

Issue was caused by transformation tools weren't taking metastrip clips into
account, so strip inside of merastrips are placedon different from metastrip side
of time cursor, extension happened in unexcpected way.

7 years agoFix #30094: Subdivision Surfaces Modifier corrupts Copy Location
Sergey Sharybin [Tue, 7 Feb 2012 13:29:58 +0000 (13:29 +0000)]
Fix #30094: Subdivision Surfaces Modifier corrupts Copy Location

Issue was caused because of missed MDeformVert layer on subdivided cube.
If regular object is constrained to mesh object, extra customdata mask
is adding to such target. But armature bones are handling separately
and there was no such thing happens.
Ideally this code should be deduplicated to avoid such kind of issues,
but better not to do it so close before release.

7 years agoFix #30091: Shift-Ctrl-Alt-RMB problem in face mode
Sergey Sharybin [Tue, 7 Feb 2012 12:47:17 +0000 (12:47 +0000)]
Fix #30091: Shift-Ctrl-Alt-RMB problem in face mode

Select Edge Rings with extension policy wasn't working properly in
face selection mode because it's used to call Select Loop operator
because edge rings can be selected only in verts/edges mode.
On this call of another operator extension policy wasn't set to
newly calling operator.
Now Select Edge Rings still calls Select Loops (which is a bit nasty)
but properly sets extension flag.

7 years agoFix for [#29910] Crash on reading KX_SoundActuator.sound
Joerg Mueller [Tue, 7 Feb 2012 11:22:50 +0000 (11:22 +0000)]
Fix for [#29910] Crash on reading KX_SoundActuator.sound

aud is now imported automatically on BGE start.

7 years agoCode Cleanup: remove unused preset variable.
Campbell Barton [Tue, 7 Feb 2012 06:53:19 +0000 (06:53 +0000)]
Code Cleanup: remove unused preset variable.

7 years agoDocumentation: add missing info about the fileselectior using hard coded property...
Campbell Barton [Tue, 7 Feb 2012 06:07:02 +0000 (06:07 +0000)]
Documentation: add missing info about the fileselectior using hard coded property names.

7 years agoCode Cleanup:
Campbell Barton [Mon, 6 Feb 2012 22:17:41 +0000 (22:17 +0000)]
Code Cleanup:

don't call CTX_data_scene(C) for every marker drawn
also remove unneeded call when scene was already defined as well as redundant scene cast.

7 years agoBugfix for part 1 of [#30052].
Joerg Mueller [Mon, 6 Feb 2012 17:24:51 +0000 (17:24 +0000)]
Bugfix for part 1 of [#30052].

Removed the if, because it's also in the function called.

7 years agono functional change: NC_SPACE|ND_SPACE_VIEW3D notifier was getting an Object as...
Campbell Barton [Sun, 5 Feb 2012 21:58:24 +0000 (21:58 +0000)]
no functional change: NC_SPACE|ND_SPACE_VIEW3D notifier was getting an Object as a reference, currently this argument isn't used, but every other use passes a view3d, so better pass a view3d here too.

7 years agofix [#30062] Weight, Texture,Vertex Paint - Face Selection Mask Icon: Out of Sync
Campbell Barton [Sun, 5 Feb 2012 21:48:41 +0000 (21:48 +0000)]
fix [#30062] Weight, Texture,Vertex Paint - Face Selection Mask Icon: Out of Sync

missing notifier for header redraw.

7 years agoPatch #30050 by Juha Mäki-Kanto (kanttori)
Domino Marama [Sun, 5 Feb 2012 16:19:28 +0000 (16:19 +0000)]
Patch #30050 by Juha Mäki-Kanto (kanttori)

Fixes for Collada exporter.
Adds Second Life compatibility for armatures
Adds objects parentinverse to exported transform if it's non-identity
Fix mismatch between add_inv_bind_mats and add_joints_source accessor counts
Fix bone exports in world space should be local space

7 years agoRelease schedule:
Thomas Dinges [Sun, 5 Feb 2012 16:05:36 +0000 (16:05 +0000)]
Release schedule:
* BCon4, important bug fixes only.
* Update readme.html and links to release logs, which now point to http://www.blender.org/development/release-logs/blender-262

7 years agoFix for [#30044] on windows
Alexander Kuznetsov [Sun, 5 Feb 2012 16:05:20 +0000 (16:05 +0000)]
Fix for [#30044] on windows

We don't know how ALT key modifies the key, so utf=0;
That way Text Object can handle it.

* Should be removed when we able to support different keyboards on Windows

7 years agoMovie Clip Editor: cleanup of display panels
Sergey Sharybin [Sun, 5 Feb 2012 13:43:58 +0000 (13:43 +0000)]
Movie Clip Editor: cleanup of display panels

- Split display options into two panels:
  * Display, which contains all general display options related on editor itself
  * Marker Display, which contains options which makes sense for markers themselves
   and not used so often.
- Remove Show GPencil option which doesn't actually make sense because strokes might
  be disabled from GPencil panel
- Removed Show Pyramid option and show pyramid for KLT tracker as default.
- Added hotkey to toggle Show Disabled (Alt-D)
- Added hotkey to toggle Show Pattern (Alt-S)

Changes in interface and hotkeys are done by Sebastian Koenig.
 Thanks for the patch!

Own changes in interface were related on Aspect Ratio. It doesn't make
much sense for tracking (camera pixel aspect is what you'll want to use,
but for masking it would make much more sense because when you just
want to create a mask for footage you don't actually have camera).
Just removing from interface seems not so nice for now.

Merged from soc-2011-tomato rev43872

7 years agoBGE bug #18883: Softbodies being hit by ghost objects. Added a one liner fix in...
Benoit Bolsee [Sun, 5 Feb 2012 13:04:13 +0000 (13:04 +0000)]
BGE bug #18883: Softbodies being hit by ghost objects.  Added a one liner fix in Bullet. I will also report the fix to Erwin so that it can be added to next Bullet version.

7 years agoFix #30073: metaball + edit mode + proportinal edit hotkey
Sergey Sharybin [Sun, 5 Feb 2012 11:42:20 +0000 (11:42 +0000)]
Fix #30073: metaball + edit mode + proportinal edit hotkey

Was missed registration of PET toggling operators.

7 years agoBGE bug #21947: Softbodies not using object size. Fixed by scaling the shape before...
Benoit Bolsee [Sun, 5 Feb 2012 09:32:35 +0000 (09:32 +0000)]
BGE bug #21947: Softbodies not using object size. Fixed by scaling the shape before creating the soft body.

7 years agowin32 quicktime: missing include. How comes nobody else got this problem?
Benoit Bolsee [Sun, 5 Feb 2012 09:29:53 +0000 (09:29 +0000)]
win32 quicktime: missing include. How comes nobody else got this problem?

7 years agoCode Cleanup: minor changes & sync with bmesh.
Campbell Barton [Sun, 5 Feb 2012 07:40:15 +0000 (07:40 +0000)]
Code Cleanup: minor changes & sync with bmesh.

7 years agoCode Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.
Campbell Barton [Sun, 5 Feb 2012 02:04:26 +0000 (02:04 +0000)]
Code Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.

7 years agoFix for Luxrender boost::thread conflict, workaround now is to just not use it
Brecht Van Lommel [Sat, 4 Feb 2012 19:58:09 +0000 (19:58 +0000)]
Fix for Luxrender boost::thread conflict, workaround now is to just not use it
in cycles and use pthreads instead.

7 years agoFix: non-power-of-two-textures were always disabled on ATI/Apple due to poor
Brecht Van Lommel [Sat, 4 Feb 2012 19:57:09 +0000 (19:57 +0000)]
Fix: non-power-of-two-textures were always disabled on ATI/Apple due to poor
support in some older cards, now it does a more precise check for problematic
cards so that it can be enabled on new cards that do support it properly.

7 years agoBGE bug #29133: Render to Texture not working. Fixed by using same viewport to render...
Benoit Bolsee [Sat, 4 Feb 2012 17:20:38 +0000 (17:20 +0000)]
BGE bug #29133: Render to Texture not working. Fixed by using same viewport to render and capture.

7 years agofix [#29947] Blender crashes when duplicate bones
Campbell Barton [Sat, 4 Feb 2012 11:59:09 +0000 (11:59 +0000)]
fix [#29947] Blender crashes when duplicate bones

missing NULL check.

7 years agofix [#30068] Link Empty to Track python error
Campbell Barton [Sat, 4 Feb 2012 11:12:18 +0000 (11:12 +0000)]
fix [#30068] Link Empty to Track python error

incorrect attribute used (likely code added since last release).

7 years agoCode Cleanup: pep8 edits
Campbell Barton [Sat, 4 Feb 2012 11:10:41 +0000 (11:10 +0000)]
Code Cleanup: pep8 edits

7 years agoFix MinGW compilation due to recent font rendering changes.
Antony Riakiotakis [Sat, 4 Feb 2012 10:02:59 +0000 (10:02 +0000)]
Fix MinGW compilation due to recent font rendering changes.

GLEW_STATIC needs to be defined for static linking of GLEW or the dynamic entry points are looked up during linking

7 years agoCode Cleanup: avoid double promotion.
Campbell Barton [Sat, 4 Feb 2012 06:55:29 +0000 (06:55 +0000)]
Code Cleanup: avoid double promotion.

7 years agoFix for aliased fonts in the game engine.
Alex Fraser [Sat, 4 Feb 2012 01:51:59 +0000 (01:51 +0000)]
Fix for aliased fonts in the game engine.
 - Mipmaps are generated in BLF when drawing text in-game. In that case, padding around each glyph is increased to prevent bleeding.
 - Texture filtering is turned on for in-game text.
 - All glyphs are now "twisted": the leading edge is brought a small distance forward, to prevent z-fighting in overlapping (kerned) glyphs. This happens both in the game engine and the rest of the UI, but should have no effect in the UI due to Z-compression in the clipping matrix.
Reviewed and approved by bdiego; see patch [#29882] in the tracker. Tested by dfelinto.

7 years agofix [#30060] self.report printed twice
Campbell Barton [Sat, 4 Feb 2012 00:36:55 +0000 (00:36 +0000)]
fix [#30060] self.report printed twice

7 years agoFix #30064: Image editor: paint on image, rename image, undo -> crash
Sergey Sharybin [Fri, 3 Feb 2012 20:12:21 +0000 (20:12 +0000)]
Fix #30064: Image editor: paint on image, rename image, undo -> crash

7 years agoFix #30028: VSE Paste Strip Crash
Sergey Sharybin [Fri, 3 Feb 2012 13:08:44 +0000 (13:08 +0000)]
Fix #30028: VSE Paste Strip Crash

Crash was caused by invalidation of ID pointers stored in sequencer clipboard
when using undo (undo leads to changes in IDs addresses in memory).

Restore pointers stored in clipboard in the same way as IDs are restoring
for user interface.

7 years agofix [#27953] VSE: weird drawing and placement issues strips during 'E'
Campbell Barton [Fri, 3 Feb 2012 01:06:32 +0000 (01:06 +0000)]
fix [#27953] VSE: weird drawing and placement issues strips during 'E'

was calculating meta / effect in wrong order causing delay, now calculate selected meta's, then all effects after tramsforming.

7 years agoMinor Speedup: avoid for() loop over all faces in fluidsim by passing an example...
Campbell Barton [Thu, 2 Feb 2012 23:58:46 +0000 (23:58 +0000)]
Minor Speedup: avoid for() loop over all faces in fluidsim by passing an example face to the mesh read function (also avoid a lot of int -> short/char conversions).

7 years agoFix #30043: typing ctrl+Z in text field adds a square. For ascii these control
Brecht Van Lommel [Thu, 2 Feb 2012 21:46:29 +0000 (21:46 +0000)]
Fix #30043: typing ctrl+Z in text field adds a square. For ascii these control
characters were already filtered out, do the same now for utf-8.

7 years agoFix #29921: render rasterization error in a corner case, only happened on 32bit
Brecht Van Lommel [Thu, 2 Feb 2012 21:46:11 +0000 (21:46 +0000)]
Fix #29921: render rasterization error in a corner case, only happened on 32bit
builds because of extended float precision, slightly tweaked code to avoid that,
so that it works the same as on 64bit.

7 years agoCode Cleanup: check is / is not when comparing singletons.
Campbell Barton [Thu, 2 Feb 2012 21:07:56 +0000 (21:07 +0000)]
Code Cleanup: check is / is not when comparing singletons.

7 years agoCamera tracking: fix for Clean Tracks operator which used to always use
Sergey Sharybin [Thu, 2 Feb 2012 19:37:50 +0000 (19:37 +0000)]
Camera tracking: fix for Clean Tracks operator which used to always use
properties values from previous operator run instead of using values
from tool settings.

7 years agoDisallow fill caps for curves without bevel object.
Sergey Sharybin [Thu, 2 Feb 2012 19:20:51 +0000 (19:20 +0000)]
Disallow fill caps for curves without bevel object.
It's getting complicated to detect which part of curve is actually a
cap in cases like extruded 2d curve with non-zero depth.

7 years agoFix for recent bevel cap option
Sergey Sharybin [Thu, 2 Feb 2012 18:50:44 +0000 (18:50 +0000)]
Fix for recent bevel cap option

"Holes" used to be ignored (i.e. when using "Text" as bevel object "e" wouldn't have a "hole").
Resolved by collecting all polys needed for top and bottom cap and filling them at once

7 years agoAdded option to fill caps of bevelled curves.
Sergey Sharybin [Thu, 2 Feb 2012 15:15:52 +0000 (15:15 +0000)]
Added option to fill caps of bevelled curves.

It can be found in Shape panel below Fill label. If this option is enabled,
caps of curve will be filled.

7 years agoFix #27213: editing color ramp "Pos:" number value did not update the ramp
Brecht Van Lommel [Thu, 2 Feb 2012 14:07:24 +0000 (14:07 +0000)]
Fix #27213: editing color ramp "Pos:" number value did not update the ramp
properly, when moving the current point before another.

7 years agoFix #29056: keymapping NDOF motion events not working correct. Motion even type
Brecht Van Lommel [Thu, 2 Feb 2012 13:35:19 +0000 (13:35 +0000)]
Fix #29056: keymapping NDOF motion events not working correct. Motion even type
was missing in python.

7 years agoFix related to #30053: crash rendering scene strips without a scene (due to missing...
Brecht Van Lommel [Thu, 2 Feb 2012 13:21:38 +0000 (13:21 +0000)]
Fix related to #30053: crash rendering scene strips without a scene (due to missing library).

7 years agoown attempted simplification to previous patch was incorrect.
Campbell Barton [Thu, 2 Feb 2012 11:12:41 +0000 (11:12 +0000)]
own attempted simplification to previous patch was incorrect.

7 years agopatch from Peter Stern to fix CMake building on OSX (without manual editing of config...
Campbell Barton [Thu, 2 Feb 2012 11:08:48 +0000 (11:08 +0000)]
patch from Peter Stern to fix CMake building on OSX (without manual editing of configuration)

7 years agoPatch #29705: Collada export didn't export mesh name.
Domino Marama [Thu, 2 Feb 2012 10:34:44 +0000 (10:34 +0000)]
Patch #29705: Collada export didn't export mesh name.
Added name= parameter to geometry nodes in Collada export

7 years agoFix #29381: Navmeshs frees not guarded allocated memory and leaked
Sergey Sharybin [Thu, 2 Feb 2012 08:48:43 +0000 (08:48 +0000)]
Fix #29381: Navmeshs frees not guarded allocated memory and leaked

There were two issues discovered:
- Triangles mapping didn't free in buildNavMeshData if there's no recast data for an object
- KX_NavMeshObject used not-guarded allocation for polygons storage, but used guarded
  freeing stuff to free used memory, producing error messages in the console and leading to
  memory leak.

Wasn't actually harmful for users -- there was no memory corruptions and error happens only
when object was set up in a way when navmesh can't work in theory.

7 years agoCode Cleanup: de-duplicate bone space calculation ~(35 sloc)
Campbell Barton [Thu, 2 Feb 2012 08:47:46 +0000 (08:47 +0000)]
Code Cleanup: de-duplicate bone space calculation ~(35 sloc)

7 years agofix [#30051] Copy Scale constraint overrides Inherit Scale from parent
Campbell Barton [Thu, 2 Feb 2012 08:04:06 +0000 (08:04 +0000)]
fix [#30051] Copy Scale constraint overrides Inherit Scale from parent

space conversion in constraint code ignored inherit scale option.

7 years agoCleanup Only: replace numbers with defines.
Campbell Barton [Thu, 2 Feb 2012 07:37:44 +0000 (07:37 +0000)]
Cleanup Only: replace numbers with defines.

7 years agofix [#28296] File selector crash when with filepath property
Campbell Barton [Thu, 2 Feb 2012 05:55:01 +0000 (05:55 +0000)]
fix [#28296] File selector crash when with filepath property

disable browsing a file property within the file selector to avoid a crash.

7 years ago* fix for error in shape transfer (wrong var name).
Campbell Barton [Thu, 2 Feb 2012 05:11:42 +0000 (05:11 +0000)]
* fix for error in shape transfer (wrong var name).
* fix for error alligning object to the view when no space was set.

also added blenderplayer start to CTest operator blacklist.

7 years agointernal cleanup, check.
Campbell Barton [Thu, 2 Feb 2012 04:59:30 +0000 (04:59 +0000)]
internal cleanup, check.

* remove duplicate operator, wasnt used.
* added check for duplicate types for CTest.

7 years agofix [#29666] Duplicate entries in bpy.types
Campbell Barton [Thu, 2 Feb 2012 04:43:35 +0000 (04:43 +0000)]
fix [#29666] Duplicate entries in bpy.types

Python operator subclasses and operator types each get their own SRNA, causing double ups for bpy.types.__dir__()

From the operator type - these share names.
* ot->ext.srna
* ot->srna

Note that this conflict is still there, this only disables 'ot->ext.srna' from being included in dir(bpy.types).

7 years agoFix for possible memory leak on creation of a vector using Vector.Range.
Andrew Hale [Thu, 2 Feb 2012 01:07:04 +0000 (01:07 +0000)]
Fix for possible memory leak on creation of a vector using Vector.Range.
It was possible to allocate an array of size<2 which would then raise an error on vector creation without freeing.

Fix to ensure the behaviour of Vector.Range was the same as for builtin range() function. When specifying 3 arguments, the step argument wasn't being used to correctly calculate the vector size.

Minor formatting edits for error messages.

7 years agoFixed typo in tracking context creation. Wasn't harmful because because of definition...
Sergey Sharybin [Wed, 1 Feb 2012 19:36:39 +0000 (19:36 +0000)]
Fixed typo in tracking context creation. Wasn't harmful because because of definition value,
but better avoid such confusing assignment.

7 years agoCamera tracking: regression fixed after recent frame postprocessing refactor
Sergey Sharybin [Wed, 1 Feb 2012 19:06:21 +0000 (19:06 +0000)]
Camera tracking: regression fixed after recent frame postprocessing refactor

No-proxied frames using for 2D tracking used to be putting to cache which lead
to extra memory usage which shouldn't happen.