8 years agoCamera: some code refactoring, use an intermediate CameraParams struct instead
Brecht Van Lommel [Fri, 18 Nov 2011 15:52:00 +0000 (15:52 +0000)]
Camera: some code refactoring, use an intermediate CameraParams struct instead
of long list of variables everywhere. Intention is to also let 3d view use this
eventually, instead of duplicating code.

8 years agoCycles: try to avoid NaN pixels with oren nayar. Also small cmake code cleanup.
Brecht Van Lommel [Fri, 18 Nov 2011 15:39:40 +0000 (15:39 +0000)]
Cycles: try to avoid NaN pixels with oren nayar. Also small cmake code cleanup.

8 years agoRe-commit reverted changes from rev41394. was accidentally
Sergey Sharybin [Fri, 18 Nov 2011 15:29:40 +0000 (15:29 +0000)]
Re-commit reverted changes from rev41394. was accidentally
reverted when trunk was prepared for tomato merge.

8 years agoCamera tracking: multiply all camera matrices by inverted first reconstructed camera...
Sergey Sharybin [Fri, 18 Nov 2011 14:42:18 +0000 (14:42 +0000)]
Camera tracking: multiply all camera matrices by inverted first reconstructed camera matrix

This makes blender camera:
- Be located on exactly the same position at first frame after applying
  Camera Solver constraint
- Be looking in exactly the same direction it used to look before
  applying Camera Solver constraint

Before this patch in most of cases camera used to change direction
after applying solved data on it which can be confusing in some cases.

Currently solved files wouldn't be broken, but after solve scene should
be re-oriented. Not big deal because re-solving isn't so safe for scene
orientation anyway.

8 years agoRename bgpic.add() to to correspond others collections like
Sergey Sharybin [Fri, 18 Nov 2011 14:28:45 +0000 (14:28 +0000)]
Rename bgpic.add() to to correspond others collections like
render layers, vertices groups and so.
Also added bgpig.remove() function to remove specified picture.

8 years agomake RNA_def_float_rotation usable for single value rotations (not arrays).
Campbell Barton [Fri, 18 Nov 2011 09:23:55 +0000 (09:23 +0000)]
make RNA_def_float_rotation usable for single value rotations (not arrays).

8 years agoMoving spanish code from es_ES to es for now (as the best spanish translation is...
Bastien Montagne [Fri, 18 Nov 2011 09:16:29 +0000 (09:16 +0000)]
Moving spanish code from es_ES to es for now (as the best spanish translation is es.po...).

Else, gettext first search into es_ES (and es_MX it seems???), before using content from es, which currently is not good.

8 years agoSet floor fails to make camera be in positive Z half-space if it was parented to...
Sergey Sharybin [Fri, 18 Nov 2011 08:48:33 +0000 (08:48 +0000)]
Set floor fails to make camera be in positive Z half-space if it was parented to other object.

8 years agoedits to 41957, main changes to render layer removal.
Campbell Barton [Fri, 18 Nov 2011 08:42:44 +0000 (08:42 +0000)]
edits to 41957, main changes to render layer removal.
- report an error if the layer can't be removed
- check the render layer is in the list before removing

8 years agoAdded methods new and remove to scene.render.layers, so now render layers
Sergey Sharybin [Fri, 18 Nov 2011 07:11:54 +0000 (07:11 +0000)]
Added methods new and remove to scene.render.layers, so now render layers
can be created and removed from scripts.

8 years agoexclude addons_contrib for release builds for scons/osx too
Campbell Barton [Fri, 18 Nov 2011 05:14:13 +0000 (05:14 +0000)]
exclude addons_contrib for release builds for scons/osx too

8 years agotab -> spaces
Campbell Barton [Fri, 18 Nov 2011 04:55:43 +0000 (04:55 +0000)]
tab -> spaces

8 years agodocument py gotchas
Campbell Barton [Fri, 18 Nov 2011 04:48:27 +0000 (04:48 +0000)]
document py gotchas
- dont assume you get the data names you ask for
- beware of collisions with library names
- beware of py modules calling sys.exit

8 years agoaddons in contrib now have their own 'Testing' category which is off by default.
Campbell Barton [Thu, 17 Nov 2011 20:11:20 +0000 (20:11 +0000)]
addons in contrib now have their own 'Testing' category which is off by default.

8 years agoexclude addons_contrib/ for release builds.
Campbell Barton [Thu, 17 Nov 2011 19:43:59 +0000 (19:43 +0000)]
exclude addons_contrib/ for release builds.

8 years agoTweaks and fixes to UI messages, found while translating in french.
Bastien Montagne [Thu, 17 Nov 2011 19:26:50 +0000 (19:26 +0000)]
Tweaks and fixes to UI messages, found while translating in french.

8 years agoadd flag FUNC_USE_MAIN for rna functions which don't need the context. (currently...
Campbell Barton [Thu, 17 Nov 2011 18:41:37 +0000 (18:41 +0000)]
add flag FUNC_USE_MAIN for rna functions which don't need the context. (currently unused)

8 years agocentralize some of the came install commands, were being copied between osx/win/linux
Campbell Barton [Thu, 17 Nov 2011 18:23:34 +0000 (18:23 +0000)]
centralize some of the came install commands, were being copied between osx/win/linux

8 years agopyapi feature from 2.4x
Campbell Barton [Thu, 17 Nov 2011 08:47:34 +0000 (08:47 +0000)]
pyapi feature from 2.4x

allow collection subscript to contain the library or None.

eg:["Mesh", "/subsurf_test.blend"]["Scene", None]

  # also works with get()"some_armature", "//some_lib.blend"), None)

8 years agoFixed comment in BLI_dlrbTree_search_exact
Konrad Kleine [Thu, 17 Nov 2011 08:02:36 +0000 (08:02 +0000)]
Fixed comment in BLI_dlrbTree_search_exact

8 years agopydrivers: 'frame' is now in the driver namespace,
Campbell Barton [Thu, 17 Nov 2011 07:08:09 +0000 (07:08 +0000)]
pydrivers: 'frame' is now in the driver namespace,

- no need to link to scenes when using a frame from the pydriver, this made linking rigs for eg, quite messy.
- advantage that we get subframe values (where scenes from was fixed to a whole number).

8 years agopass encoding to uses of decode() incase the default isnt utf-8. ignore decode errors...
Campbell Barton [Thu, 17 Nov 2011 04:05:54 +0000 (04:05 +0000)]
pass encoding to uses of decode() incase the default isnt utf-8. ignore decode errors in some cases.

This should fix an error with generated qtcreator projects.

also replace decoded bytes for unicode escape sequences in the VIEW3D_MT_edit_text_chars menu.

8 years agoBLI_mempool redefined causing compile time error, removing duplicate typedef
Antony Riakiotakis [Wed, 16 Nov 2011 22:20:17 +0000 (22:20 +0000)]
BLI_mempool redefined causing compile time error, removing duplicate typedef

8 years agoUI: editor splitting widgets in corners now draw antialiased, also fix 1 pixel
Brecht Van Lommel [Wed, 16 Nov 2011 20:36:06 +0000 (20:36 +0000)]
UI: editor splitting widgets in corners now draw antialiased, also fix 1 pixel
inconsistency between bottom-left and top-right.

8 years agoFix [#29190] VSE bugs.
Bastien Montagne [Wed, 16 Nov 2011 20:03:54 +0000 (20:03 +0000)]
Fix [#29190] VSE bugs.

Only real bug was, that effect strips' start frame and length were editable. Made all four frame properties readonly on RNA level for those kind of strips (those for which get_sequence_effect_num_inputs returns a non-null value).

Also fixed the tooltip of frame_final_duration.

8 years agomerge mempool changes from bmesh (adds mempool iterator).
Campbell Barton [Wed, 16 Nov 2011 19:31:42 +0000 (19:31 +0000)]
merge mempool changes from bmesh (adds mempool iterator).

8 years agoFix #29260: Missing "Extend" parameter for Border Select
Sergey Sharybin [Wed, 16 Nov 2011 19:22:14 +0000 (19:22 +0000)]
Fix #29260: Missing "Extend" parameter for Border Select

Added "Extend" flag to border select operators for editors:
- UV Editor
- Sequencer
- Info Space
- Graph Editor
- File Browser
- Clip Editor
- Action Editor
- Channels and markers regions

Can be used for custom keymaps.

8 years agoDynamic Paint:
Miika Hamalainen [Wed, 16 Nov 2011 18:32:28 +0000 (18:32 +0000)]
Dynamic Paint:
* Wave simulation speed doesn't anymore depend on surface size, but uses relative distances instead. This change will likely change simulation behavior on existing saves, but can be easily tweaked back using the "Wave Speed" parameter.
* Added a new wave brush type, "Depth Change". It uses the change of brush intersection between frames, giving a better looking "wake" for moving objects. It also doesn't leave any "dent" to the surface while remaining still.

8 years agominor edits, move mempool stack vars into the nested scope when they aren't likely...
Campbell Barton [Wed, 16 Nov 2011 16:50:30 +0000 (16:50 +0000)]
minor edits, move mempool stack vars into the nested scope when they aren't likely to be used, also formatting edits (was quite un-blender like).

8 years agominor cleanup
Campbell Barton [Wed, 16 Nov 2011 16:38:37 +0000 (16:38 +0000)]
minor cleanup
- remove / comment unused python vars
- replace mul_v3_fl(somevec, -1.0f); with negate_v3(somevec);

8 years agoCycles: cmake build system tweak, might solve compile issue.
Brecht Van Lommel [Wed, 16 Nov 2011 16:28:19 +0000 (16:28 +0000)]
Cycles: cmake build system tweak, might solve compile issue.

8 years agoFix #29292: cycles not loading linked image datablocks correctly.
Brecht Van Lommel [Wed, 16 Nov 2011 16:10:11 +0000 (16:10 +0000)]
Fix #29292: cycles not loading linked image datablocks correctly.

8 years agoFix #29293: NLA Strip modifiers don't survive save/reload. One letter
Brecht Van Lommel [Wed, 16 Nov 2011 16:08:45 +0000 (16:08 +0000)]
Fix #29293: NLA Strip modifiers don't survive save/reload. One letter
can make a big difference :)

8 years agoFix #29093: world zenith up and down texture influence were not working
Brecht Van Lommel [Wed, 16 Nov 2011 15:47:25 +0000 (15:47 +0000)]
Fix #29093: world zenith up and down texture influence were not working
correct. These were decoupled from horizon influence for 2.5, but not
actually used in the render engine.

8 years agoFix #29160: material node "Texture" didn't use default texture coordinates
Brecht Van Lommel [Wed, 16 Nov 2011 14:13:43 +0000 (14:13 +0000)]
Fix #29160: material node "Texture" didn't use default texture coordinates
anymore when nothing was connected to the socket.

8 years agoFix #29243: unlink texture datablock from material node in texture properties
Brecht Van Lommel [Wed, 16 Nov 2011 13:49:51 +0000 (13:49 +0000)]
Fix #29243: unlink texture datablock from material node in texture properties
could crash, RNA pointer from context was invalid.

8 years agoPep8 changes for motion tracking py scripts
Sergey Sharybin [Wed, 16 Nov 2011 13:39:58 +0000 (13:39 +0000)]
Pep8 changes for motion tracking py scripts

8 years agoFix #29287: cycles and other external render engines did not print correct frame
Brecht Van Lommel [Wed, 16 Nov 2011 12:47:37 +0000 (12:47 +0000)]
Fix #29287: cycles and other external render engines did not print correct frame
number in background render.

8 years agoDefault cache file paths for ocean and fluidsim modifiers are now "<temp folder>...
Lukas Toenne [Wed, 16 Nov 2011 12:43:12 +0000 (12:43 +0000)]
Default cache file paths for ocean and fluidsim modifiers are now "<temp folder>/ocean_cache/" and "<temp_folder>/fluid_cache/" when the file is not saved yet at the time the modifiers are created.

If it has been saved, the file paths are relative to the .blend: "//ocean_cache/" and "//fluid_cache/".

This should at least partially fix bug #29273. Particle external point caches are not changed.

8 years agoFix #29288: armature draw type wire + manipulator draw issue.
Brecht Van Lommel [Wed, 16 Nov 2011 12:27:24 +0000 (12:27 +0000)]
Fix #29288: armature draw type wire + manipulator draw issue.

8 years agoCLIP_OT_delete_proxy missed a space-type test in its poll func (was noisy with the...
Bastien Montagne [Wed, 16 Nov 2011 11:52:31 +0000 (11:52 +0000)]
CLIP_OT_delete_proxy missed a space-type test in its poll func (was noisy with the space-menu in 3D views :P ).

8 years agoCamera tracking: forbid focal length=0 and small code cleanup
Sergey Sharybin [Wed, 16 Nov 2011 10:00:02 +0000 (10:00 +0000)]
Camera tracking: forbid focal length=0 and small code cleanup

8 years agoformatting edits & doc correction, no functional changes.
Campbell Barton [Wed, 16 Nov 2011 03:56:34 +0000 (03:56 +0000)]
formatting edits & doc correction, no functional changes.

8 years agosupport for creating project files in utf8 paths (was defaulting to ascii and throwin...
Campbell Barton [Wed, 16 Nov 2011 03:44:08 +0000 (03:44 +0000)]
support for creating project files in utf8 paths (was defaulting to ascii and throwing errors)

8 years agoPartial Bugfix 2: [#29229] Outliner RMB commands unexpected results
Joshua Leung [Wed, 16 Nov 2011 02:14:39 +0000 (02:14 +0000)]
Partial Bugfix 2: [#29229] Outliner RMB commands unexpected results

RenderLayers and RenderPasses don't show the generic Hide/Unhide/Select/Deselect
popup which is irrelevant for this use case. I've included a commented-out call
here that can be replaced when we have some operations which can be performed on
this data (*)

(*) For new devs looking to get into blender dev, this could be a nice little
project to work on.

8 years agoPartial Bugfix: [#29229] Outliner RMB commands unexpected results
Joshua Leung [Wed, 16 Nov 2011 00:13:38 +0000 (00:13 +0000)]
Partial Bugfix: [#29229] Outliner RMB commands unexpected results

This commit implements the Unlink and Make Single User capabilities for World
datablocks in the Outliner

8 years agoFix #29232: on background render where it could not find the .blend file, the
Brecht Van Lommel [Tue, 15 Nov 2011 23:03:35 +0000 (23:03 +0000)]
Fix #29232: on background render where it could not find the .blend file, the
default cube would be rendered instead, now stops processing arguments after
failed file load.

8 years agoFix #29278: cycles crash with displacement method both.
Brecht Van Lommel [Tue, 15 Nov 2011 22:09:30 +0000 (22:09 +0000)]
Fix #29278: cycles crash with displacement method both.

8 years agoOSX: buildfix for itask on 10.5.sdk
Jens Verwiebe [Tue, 15 Nov 2011 21:55:07 +0000 (21:55 +0000)]
OSX: buildfix for itask on 10.5.sdk

8 years agoFix #28936: UV unwrap issue with meshes with inconsistent normals.
Brecht Van Lommel [Tue, 15 Nov 2011 21:16:37 +0000 (21:16 +0000)]
Fix #28936: UV unwrap issue with meshes with inconsistent normals.

8 years agoFix issue with tracks color presets
Sergey Sharybin [Tue, 15 Nov 2011 20:26:44 +0000 (20:26 +0000)]
Fix issue with tracks color presets

8 years agoFix: part of 3d view header disappears when collapsing menus.
Brecht Van Lommel [Tue, 15 Nov 2011 20:19:15 +0000 (20:19 +0000)]
Fix: part of 3d view header disappears when collapsing menus.

8 years agoTypo fixes in descriptions.
Sergey Sharybin [Tue, 15 Nov 2011 20:02:45 +0000 (20:02 +0000)]
Typo fixes in descriptions.

8 years agoFix #29208: Text.clear() and Text.write() did not redraw text editor.
Brecht Van Lommel [Tue, 15 Nov 2011 19:46:56 +0000 (19:46 +0000)]
Fix #29208: Text.clear() and Text.write() did not redraw text editor.

8 years agoSVN maintenance.
Guillermo S. Romero [Tue, 15 Nov 2011 19:37:09 +0000 (19:37 +0000)]
SVN maintenance.

8 years agoFix #29275: vertex/edge/face selection buttons showing squashed in 3d view header.
Brecht Van Lommel [Tue, 15 Nov 2011 19:25:28 +0000 (19:25 +0000)]
Fix #29275: vertex/edge/face selection buttons showing squashed in 3d view header.

8 years agoCycles: move clew into cycles namespace to avoid conflicts, and fix mesh
Brecht Van Lommel [Tue, 15 Nov 2011 19:23:35 +0000 (19:23 +0000)]
Cycles: move clew into cycles namespace to avoid conflicts, and fix mesh
displacement panel showing with blender internal.

8 years agoFix for #29165 bugfix: adding nodes from shift+A menu in node editor did nothing.
Brecht Van Lommel [Tue, 15 Nov 2011 18:24:17 +0000 (18:24 +0000)]
Fix for #29165 bugfix: adding nodes from shift+A menu in node editor did nothing.

8 years agoFix build issue on windows, M_PI => M_PI_F.
Brecht Van Lommel [Tue, 15 Nov 2011 18:01:52 +0000 (18:01 +0000)]
Fix build issue on windows, M_PI => M_PI_F.

8 years agopatch [#28993] wm_window_match_do(): Fix crash on null pointer dereference
Campbell Barton [Tue, 15 Nov 2011 16:38:48 +0000 (16:38 +0000)]
patch [#28993] wm_window_match_do(): Fix crash on null pointer dereference
from Ola Jeppsson (olajep)

also some cleanup edits

8 years agoreplace rna description string limits with rna define RNA_DYN_DESCR_MAX
Campbell Barton [Tue, 15 Nov 2011 15:24:57 +0000 (15:24 +0000)]
replace rna description string limits with rna define RNA_DYN_DESCR_MAX

8 years agoFix #29259: cycles issues on certain processors. Now two versions of the kernel
Brecht Van Lommel [Tue, 15 Nov 2011 15:13:38 +0000 (15:13 +0000)]
Fix #29259: cycles issues on certain processors. Now two versions of the kernel
are compiled, one SSE optimized and the other not, and it will choose between
them at runtime.

8 years agoadd support for python __doc__ comments in menu classes showing in the tooltip, since...
Campbell Barton [Tue, 15 Nov 2011 14:58:14 +0000 (14:58 +0000)]
add support for python __doc__ comments in menu classes showing in the tooltip, since menus are used as buttons too.

8 years agoshow tooltips for menus, currently works for operators and enum properties which...
Campbell Barton [Tue, 15 Nov 2011 14:20:57 +0000 (14:20 +0000)]
show tooltips for menus, currently works for operators and enum properties which are can be accessed as menus from the UI (camera overlay enum for example)

8 years agoaccess mesh string data layer as bytes since this is low level data storage
Campbell Barton [Tue, 15 Nov 2011 14:01:24 +0000 (14:01 +0000)]
access mesh string data layer as bytes since this is low level data storage

8 years agofix [#29272] Dynamic Paint crashes on duplicating a particle system
Campbell Barton [Tue, 15 Nov 2011 13:45:24 +0000 (13:45 +0000)]
fix [#29272] Dynamic Paint crashes on duplicating a particle system
smoke had this same bug too

8 years agoOne more description became easier to understand
Sergey Sharybin [Tue, 15 Nov 2011 12:32:58 +0000 (12:32 +0000)]
One more description became easier to understand

8 years agopatch [#27708] API for adding mesh properties
Campbell Barton [Tue, 15 Nov 2011 12:28:13 +0000 (12:28 +0000)]
patch [#27708] API for adding mesh properties
from Geoffrey Bantle (briggs)

8 years agoCamera tracking: made some options more easy to understand
Sergey Sharybin [Tue, 15 Nov 2011 12:20:58 +0000 (12:20 +0000)]
Camera tracking: made some options more easy to understand

- Changed some names so now people who aren't really familiar with
  motion tracking can understand what they exactly means
- Also cleaned up and rephraded some descriptions
- Changed behavior of operator which creates empty for 2d tracks:
  now it operates on all selected tracks rather than active track only
- Added checkbox to enable/disable rotation stabilization

8 years agoFollow-up commit to r.41765
Joshua Leung [Tue, 15 Nov 2011 12:02:44 +0000 (12:02 +0000)]
Follow-up commit to r.41765

Reviewed behaviour of selection operators, and decided that ultimately, it's
better if select left/right/column didn't change the channel selections at all.
This is because with the highlighting of the active curve nowadays, it's a bit
distracting to suddenly lose track of it after performing these operations, when
you may have been trying to select all of the keyframes on that curve for
further tweaking.

8 years agopy/rna api was calling RNA_property_type more often then needed (no functional change)
Campbell Barton [Tue, 15 Nov 2011 11:56:54 +0000 (11:56 +0000)]
py/rna api was calling RNA_property_type more often then needed (no functional change)

8 years agoFormatting cleanup. No functional changes
Joshua Leung [Tue, 15 Nov 2011 11:34:49 +0000 (11:34 +0000)]
Formatting cleanup. No functional changes

8 years agoBugfix [#29264] Superfluous control in Maintain Volume constraint
Joshua Leung [Tue, 15 Nov 2011 11:15:37 +0000 (11:15 +0000)]
Bugfix [#29264] Superfluous control in Maintain Volume constraint

8 years agocorrect off by one error in previous commit, also add assert incase idproperty length...
Campbell Barton [Tue, 15 Nov 2011 11:04:29 +0000 (11:04 +0000)]
correct off by one error in previous commit, also add assert incase idproperty length gets out of sync.

8 years agomissed these while rna renaming.
Campbell Barton [Tue, 15 Nov 2011 10:49:02 +0000 (10:49 +0000)]
missed these while rna renaming.

8 years agoadd IDP_EqualsProperties support for comparing non-null terminated byte strings.
Campbell Barton [Tue, 15 Nov 2011 10:32:08 +0000 (10:32 +0000)]
add IDP_EqualsProperties support for comparing non-null terminated byte strings.

8 years agode-duplicate some idproperty py api code, also improve some exception messages.
Campbell Barton [Tue, 15 Nov 2011 10:19:44 +0000 (10:19 +0000)]
de-duplicate some idproperty py api code, also improve some exception messages.

8 years agoFixed compilation error in writeffmpg.c (caused by recent IDProp changes).
Bastien Montagne [Tue, 15 Nov 2011 10:01:18 +0000 (10:01 +0000)]
Fixed compilation error in writeffmpg.c (caused by recent IDProp changes).

8 years agoMinor: added the description of expected string format for the template_list's "prop_...
Bastien Montagne [Tue, 15 Nov 2011 09:42:00 +0000 (09:42 +0000)]
Minor: added the description of expected string format for the template_list's "prop_list" parameter (was missing in bpy ref...).

8 years agorename IDProp.c/h to idprop_py_api, since it was same name as BKE idprop.c with case...
Campbell Barton [Tue, 15 Nov 2011 09:28:15 +0000 (09:28 +0000)]
rename IDProp.c/h to idprop_py_api, since it was same name as BKE idprop.c with case changed.

8 years agopass a pointer to IDP_New's IDPropertyTemplate rather then a copy.
Campbell Barton [Tue, 15 Nov 2011 09:22:52 +0000 (09:22 +0000)]
pass a pointer to IDP_New's IDPropertyTemplate rather then a copy.

8 years agoFixed typo in previous commit
Sergey Sharybin [Tue, 15 Nov 2011 09:21:22 +0000 (09:21 +0000)]
Fixed typo in previous commit

8 years agosupport for non-null terminated byte strings in id properties (as a subtype of IDP_ST...
Campbell Barton [Tue, 15 Nov 2011 09:12:10 +0000 (09:12 +0000)]
support for non-null terminated byte strings in id properties (as a subtype of IDP_STRING types)

8 years agoPatch from nico_ga: libmv can be compiled with icc now
Sergey Sharybin [Tue, 15 Nov 2011 08:43:28 +0000 (08:43 +0000)]
Patch from nico_ga: libmv can be compiled with icc now

8 years agoRequest from nico_ga: expose WITH_BF_STATIC* variables to linux-config so
Sergey Sharybin [Tue, 15 Nov 2011 08:43:23 +0000 (08:43 +0000)]
Request from nico_ga: expose WITH_BF_STATIC* variables to linux-config so
builders can easily find interesting for them flag.

8 years agofix for own error, BLI_replace_extension would strip the filename if there wasn't...
Campbell Barton [Tue, 15 Nov 2011 07:35:28 +0000 (07:35 +0000)]
fix for own error, BLI_replace_extension would strip the filename if there wasn't already an extension.

8 years agofix for crash in blenderplayer when the engine isnt fount.
Campbell Barton [Tue, 15 Nov 2011 07:30:26 +0000 (07:30 +0000)]
fix for crash in blenderplayer when the engine isnt fount.

8 years agoWorkaround for half-transparent windows when running blender-softwaregl
Sergey Sharybin [Tue, 15 Nov 2011 07:28:18 +0000 (07:28 +0000)]
Workaround for half-transparent windows when running blender-softwaregl
and compiz effects are enabled.

Thanks to Nicholas Bishop for pointing in possible solution of this issue.

8 years agobytestring support for py/rna - this is so py can access data which
Campbell Barton [Tue, 15 Nov 2011 07:09:41 +0000 (07:09 +0000)]
bytestring support for py/rna - this is so py can access data which
isn't meant to be accessed as unicode text.

8 years agoFix #29202: Crash - VSE Cross strip probably leads to this
Sergey Sharybin [Tue, 15 Nov 2011 07:00:01 +0000 (07:00 +0000)]
Fix #29202: Crash - VSE Cross strip probably leads to this

Crash was caused by several conditions:
- Frame which failed to decode tried to be converted to RGB colorspace
  and some filters like deinterlacing used to be applied as well
  (it's avscale stuff sws_scale where crash happened).
- In some cases it happened reading of freed memory when calling
  sws_scale function. Looks like it happened because of freeing
  packet on which decoding of frame finished and reading next packet.

Solved this two issues by making YUV->RGB conversion as soon as
frame was decoded in ffmpeg_decode_video_frame (such postprocessing
used to happen in callee of this function ffmpeg_fetchibuf), so now
sws_scale would be called before freeing packet on which decoding of
frame finished and it wouldn't be called in cases when decoding of
frame failed.

If decoding of frame failed, it'll be black ibuf returned to the sequencer.

8 years agoFix #29253: 3D Manipulator: "Active Element" not supported for curves
Sergey Sharybin [Tue, 15 Nov 2011 06:37:47 +0000 (06:37 +0000)]
Fix #29253: 3D Manipulator: "Active Element" not supported for curves

This funcitonality simply wasn't implemented for curves yet, implemented it now.

8 years agoFix #29165: Arrow keys not working correct in Compositing Node Editor
Sergey Sharybin [Tue, 15 Nov 2011 06:33:33 +0000 (06:33 +0000)]
Fix #29165: Arrow keys not working correct in Compositing Node Editor

Bug is caused because of how ui_handle_menu_event works -- it makes quite tricky check
in which direction movement happens depending on button type.

Checked usages for uiItemV and found that it's used in node_editor only, so changed type
of button used there, so ui_handle_menu_event works would detect right direction of

8 years agoadd back feature from 2.4x - Shift+Del to delete objects from all scenes.
Campbell Barton [Tue, 15 Nov 2011 04:11:01 +0000 (04:11 +0000)]
add back feature from 2.4x - Shift+Del to delete objects from all scenes.

8 years agoremove unused OceanModifierData member & use smaller flags where possible
Campbell Barton [Tue, 15 Nov 2011 03:48:25 +0000 (03:48 +0000)]
remove unused OceanModifierData member & use smaller flags where possible

8 years agoset cycles scripts as pep8 & make some minor changes.
Campbell Barton [Tue, 15 Nov 2011 02:58:01 +0000 (02:58 +0000)]
set cycles scripts as pep8 & make some minor changes.

also update sphinx doc generator.

8 years agoFix #29249: mapping node not keyable anymore, restore RNA to what it was before
Brecht Van Lommel [Mon, 14 Nov 2011 20:39:53 +0000 (20:39 +0000)]
Fix #29249: mapping node not keyable anymore, restore RNA to what it was before
Cycles change, generating RNA paths for this is a bit complicated.

8 years agoFix #29238: crash with node dependency loop.
Brecht Van Lommel [Mon, 14 Nov 2011 20:26:23 +0000 (20:26 +0000)]
Fix #29238: crash with node dependency loop.

8 years agoCycles:
Brecht Van Lommel [Mon, 14 Nov 2011 19:45:21 +0000 (19:45 +0000)]
* Fix #29257: nan-pixels with zero roughness for glass/glossy.
* Fix #29239: crash with border rendering, this is not working yet, but should
  no longer crash now.
* Show object name in 3d view rendered draw type.
* Attempt to improve Sample as Light option description.

8 years agoFix for uninitialized usage of spos in AUD_LinearResampleReader::read
Sergey Sharybin [Mon, 14 Nov 2011 19:44:49 +0000 (19:44 +0000)]
Fix for uninitialized usage of spos in AUD_LinearResampleReader::read

Patch is verified by neXyon

8 years agoSome UI messages fixes and tweaks in recent merges (found while translating in french).
Bastien Montagne [Mon, 14 Nov 2011 19:13:52 +0000 (19:13 +0000)]
Some UI messages fixes and tweaks in recent merges (found while translating in french).