8 years agoCorrect stub for snapObjectsRayEx
Jens Verwiebe [Thu, 11 Apr 2013 15:40:57 +0000 (15:40 +0000)]
Correct stub for snapObjectsRayEx

8 years agoAdd stub for snapObjectsRayEx
Jens Verwiebe [Thu, 11 Apr 2013 15:35:16 +0000 (15:35 +0000)]
Add stub for snapObjectsRayEx

8 years agoAdd stub for snapObjectsRayEx
Jens Verwiebe [Thu, 11 Apr 2013 15:33:10 +0000 (15:33 +0000)]
Add stub for snapObjectsRayEx

8 years agoAnd another compile fix for Windows / scons for r55946.
Thomas Dinges [Thu, 11 Apr 2013 15:33:04 +0000 (15:33 +0000)]
And another compile fix for Windows / scons for r55946.

8 years agoCompile fix for r55970.
Thomas Dinges [Thu, 11 Apr 2013 15:21:03 +0000 (15:21 +0000)]
Compile fix for r55970.

8 years agoFix #34817: improve OpenGL preview render speed, it got quite a bit slower since...
Brecht Van Lommel [Thu, 11 Apr 2013 15:15:06 +0000 (15:15 +0000)]
Fix #34817: improve OpenGL preview render speed, it got quite a bit slower since 2.60.

Doing linearization with GLSL was already faster, but even faster is to just read the
bytes instead of floats and convert those to linear, since byte => float is just a quick
256 entry table lookup. Also made it assign the bytes directly to the image buffer so
they do not need to be converted back from float to byte for file saving, and made sky
render write the background color with OpenGL instead of doing it on the CPU.

8 years agoFix #34956: rendering animation with audio would crash with an older ffmpeg
Brecht Van Lommel [Thu, 11 Apr 2013 14:46:41 +0000 (14:46 +0000)]
Fix #34956: rendering animation with audio would crash with an older ffmpeg
after recent changes.

New ffmpeg versions accept align = 0 as a parameter and will set it to 1
automatically, but older ones need to pass align = 1.

8 years agoFix issue with bright frames appearing in clip editor when compositor is open.
Sergey Sharybin [Thu, 11 Apr 2013 14:15:52 +0000 (14:15 +0000)]
Fix issue with bright frames appearing in clip editor when compositor is open.

Allocate float buffer outside of image buffer,
so work-in-progress color space conversion doesn't
interfere with other parts of blender.

Covers most of cases -- since image buffer wouldn't
have partially-update float buffer all the rest
areas would be happy.

However, if there're places which updates float
buffer from byte buffer, it's still possible
some WIP color space conversion is displayed on
the screen.

But what a heck someone will do such a crappy
conversion anyway!

8 years agoFix #34954, due to hardcoded key release it was impossible to change key
Antony Riakiotakis [Thu, 11 Apr 2013 14:15:25 +0000 (14:15 +0000)]
Fix #34954, due to hardcoded key release it was impossible to change key
for sample color and exit the operator. Also tweaked stencil to behave
similarly, so it is now possible to assign custom keys to stencil

8 years agoFix #34929: windows would show a "No disk in drive" error popup when one of the recen...
Brecht Van Lommel [Thu, 11 Apr 2013 14:13:20 +0000 (14:13 +0000)]
Fix #34929: windows would show a "No disk in drive" error popup when one of the recently opened files was on a DVD that's no longer there in the DVD drive.

8 years agoHide preview for nodes created with Setup Tracking Scene
Sergey Sharybin [Thu, 11 Apr 2013 13:34:51 +0000 (13:34 +0000)]
Hide preview for nodes created with Setup Tracking Scene

8 years agoSetup tracking scene shall work with Cycles now
Sergey Sharybin [Thu, 11 Apr 2013 13:29:51 +0000 (13:29 +0000)]
Setup tracking scene shall work with Cycles now

8 years agoAdded circle selection menu entry for lattice, pose and armature.
Konrad Kleine [Thu, 11 Apr 2013 13:29:01 +0000 (13:29 +0000)]
Added circle selection menu entry for lattice, pose and armature.

8 years agoFix for Setup Tracking Scene operator
Sergey Sharybin [Thu, 11 Apr 2013 13:25:05 +0000 (13:25 +0000)]
Fix for Setup Tracking Scene operator

- Ported to new node add operator
- Alpha mode shall be set to Transparent

8 years agoFix for material icon rendering with cycles
Sergey Sharybin [Thu, 11 Apr 2013 12:49:57 +0000 (12:49 +0000)]
Fix for material icon rendering with cycles

Materials icons used to miss transparent background
and were using world environment which didn't give
so nice results.

Reviewed by Brecht, thanks!

8 years agoFix #34923 Images that have their alpha calculated should not get de-premultiplied.
Antony Riakiotakis [Thu, 11 Apr 2013 12:37:33 +0000 (12:37 +0000)]
Fix #34923 Images that have their alpha calculated should not get de-premultiplied.

8 years agomake scene.ray_cast() behave like object.ray_cast(), add distance arg to snapObjectsR...
Campbell Barton [Thu, 11 Apr 2013 10:17:06 +0000 (10:17 +0000)]
make scene.ray_cast() behave like object.ray_cast(), add distance arg to snapObjectsRayEx().

8 years agopy api: minor change to operator attribute access, do identity comparison with None...
Campbell Barton [Thu, 11 Apr 2013 10:16:18 +0000 (10:16 +0000)]
py api: minor change to operator attribute access, do identity comparison with None (no functional change).

8 years agopy api:
Campbell Barton [Thu, 11 Apr 2013 09:57:26 +0000 (09:57 +0000)]
py api:

ray cast function, very useful to be able to cast rays into the scene for scripts.

  hit_co, hit_no, success = scene.ray_cast(start_co, end_co)

8 years agoUse SWS_FULL_CHR_H_INT for SWS context for more accurate conversion
Sergey Sharybin [Thu, 11 Apr 2013 09:37:52 +0000 (09:37 +0000)]
Use SWS_FULL_CHR_H_INT for SWS context for more accurate conversion

Suggestion by Bjeorn Sonnenschein from report #34755.

8 years agoFix #34948, bug in Cycles node groups. The proxy node maps used to identify external...
Lukas Toenne [Thu, 11 Apr 2013 09:16:36 +0000 (09:16 +0000)]
Fix #34948, bug in Cycles node groups. The proxy node maps used to identify external connections of node group nodes were having name clashes with input/output sockets of the same name, leading to invalid cyclic connections in the cycles shader graph that were subsequently removed (prints warnings in terminal). Solution is to use two separate maps for inputs and outputs so group node sockets can safely use the same identifier.

8 years agofix [#34805] Bake action ignores parent motion
Campbell Barton [Thu, 11 Apr 2013 08:42:25 +0000 (08:42 +0000)]
fix [#34805] Bake action ignores parent motion

in fact this is more feature request.
add an option to bake a parented objects animation, then clear the parent and apply the action.

8 years agofix for crash in own recent commit. searchbox's need their own keynav state since...
Campbell Barton [Thu, 11 Apr 2013 08:33:19 +0000 (08:33 +0000)]
fix for crash in own recent commit. searchbox's need their own keynav state since they won't always be in a uiPopupBlockHandle.

8 years agofix [#34936] Unable to select items using only the arrow keys
Campbell Barton [Thu, 11 Apr 2013 02:28:34 +0000 (02:28 +0000)]
fix [#34936] Unable to select items using only the arrow keys

ignore small mouse motions for menu/search-box after using the keyboard to navigate.

8 years agoadd 2d length functions for testing pixel coords. len_manhattan_v2_int, len_manhattan...
Campbell Barton [Thu, 11 Apr 2013 02:23:45 +0000 (02:23 +0000)]
add 2d length functions for testing pixel coords. len_manhattan_v2_int, len_manhattan_v2v2_int

8 years agofix own mistake in recent inset-interpolation option, some faces were not interpolating.
Campbell Barton [Thu, 11 Apr 2013 00:23:09 +0000 (00:23 +0000)]
fix own mistake in recent inset-interpolation option, some faces were not interpolating.

8 years agofix [#34947] Alt-F Fill not working
Campbell Barton [Wed, 10 Apr 2013 23:59:37 +0000 (23:59 +0000)]
fix [#34947] Alt-F Fill not working
Regression in r54579.

8 years agocode cleanup: unused defines, remove unused scanfill success value from BLI_scanfill_...
Campbell Barton [Wed, 10 Apr 2013 23:52:07 +0000 (23:52 +0000)]
code cleanup: unused defines, remove unused scanfill success value from BLI_scanfill_begin().

8 years agointerpolate verts as well as loops for inset.
Campbell Barton [Wed, 10 Apr 2013 23:25:44 +0000 (23:25 +0000)]
interpolate verts as well as loops for inset.
- add vertex option to BM_face_interp_from_face, also expose via python.

8 years agoFluid threads: re-add an erratically forgotten line, fix typo, set default threadcoun...
Jens Verwiebe [Wed, 10 Apr 2013 23:19:57 +0000 (23:19 +0000)]
Fluid threads: re-add an erratically forgotten line, fix typo, set default threadcount to logical threadcount of machine

8 years agoFluid threads: add a restore to former omp threadcount when baking is done, todo...
Jens Verwiebe [Wed, 10 Apr 2013 23:10:25 +0000 (23:10 +0000)]
Fluid threads: add a restore to former omp threadcount when baking is done, todo: default should be logical corecount

8 years agocorrection to own recent changes to exitmode using axis-matrix, fallback to old behav...
Campbell Barton [Wed, 10 Apr 2013 23:05:35 +0000 (23:05 +0000)]
correction to own recent changes to exitmode using axis-matrix, fallback to old behavior for editmodes where the axis-matrix isnt set (curve, surface, lattice)

8 years agocode cleanup: unused vars, make other vars static.
Campbell Barton [Wed, 10 Apr 2013 22:49:50 +0000 (22:49 +0000)]
code cleanup: unused vars, make other vars static.

8 years agoFix for a crash in the Bezier Curve geometry modifier.
Tamito Kajiyama [Wed, 10 Apr 2013 22:20:24 +0000 (22:20 +0000)]
Fix for a crash in the Bezier Curve geometry modifier.
Least-squares fitting parameters were stored in a fixed size array, causing a
buffer overflow depending on the number of input points.
Problem report with a .blend file to reproduce the issue and a bugfix patch by
christiankrupa and jensverwiebe on IRC, thanks a lot!
Many thanks also to Bastien Montagne for forwarding the problem report by email.

8 years ago* Better tooltip for WM_OT_properties_context_change.
Thomas Dinges [Wed, 10 Apr 2013 20:36:22 +0000 (20:36 +0000)]
* Better tooltip for WM_OT_properties_context_change.

8 years agoAdded to the Freestyle panel in the Render buttons a button to switch to the Render...
Tamito Kajiyama [Wed, 10 Apr 2013 20:20:20 +0000 (20:20 +0000)]
Added to the Freestyle panel in the Render buttons a button to switch to the Render Layers context.

8 years agoThe fluid threads setting is still WIP, for now fix compiling without openMP enabled
Jens Verwiebe [Wed, 10 Apr 2013 20:05:11 +0000 (20:05 +0000)]
The fluid threads setting is still WIP, for now fix compiling without openMP enabled

8 years agoAdd a gui control for setting omp threads in fluids
Jens Verwiebe [Wed, 10 Apr 2013 18:35:18 +0000 (18:35 +0000)]
Add a gui control for setting omp threads in fluids

8 years agoFix #34941: Space.draw_handler_add now supports PRE_VIEW and POST_VIEW callbacks
Brecht Van Lommel [Wed, 10 Apr 2013 16:59:55 +0000 (16:59 +0000)]
Fix #34941: Space.draw_handler_add now supports PRE_VIEW and POST_VIEW callbacks
for more editors: timeline, graph, action, NLA, sequencer, image, clip.

8 years agoOSX: remove the applescript and env var for omp_set_treads from plist
Jens Verwiebe [Wed, 10 Apr 2013 15:22:39 +0000 (15:22 +0000)]
OSX: remove the applescript and env var for omp_set_treads from plist

8 years agopy api: path_reference_copy() use try/except when copying images, can fail for odd...
Campbell Barton [Wed, 10 Apr 2013 12:16:27 +0000 (12:16 +0000)]
py api: path_reference_copy() use try/except when copying images, can fail for odd reasons (currently fails if the dest dir is a symlink and not using expected permissions).

8 years agopy api: simple function to get an image from an objects for simple formats that only...
Campbell Barton [Wed, 10 Apr 2013 11:43:25 +0000 (11:43 +0000)]
py api: simple function to get an image from an objects for simple formats that only support one image per object.

8 years agoalternate solution for r55921 which was calling invoke() from exec(), which shouldnt...
Campbell Barton [Wed, 10 Apr 2013 09:49:44 +0000 (09:49 +0000)]
alternate solution for r55921 which was calling invoke() from exec(), which shouldnt be done.

8 years agoCode cleanup.
Thomas Dinges [Wed, 10 Apr 2013 02:58:22 +0000 (02:58 +0000)]
Code cleanup.

8 years agoFix for [#34904] and [#34913]: broken Freestyle edge/face marks with modifiers.
Tamito Kajiyama [Wed, 10 Apr 2013 01:12:37 +0000 (01:12 +0000)]
Fix for [#34904] and [#34913]: broken Freestyle edge/face marks with modifiers.

8 years agoFix for the subtype of range_min/max parameters in RNA Freestyle settings.
Tamito Kajiyama [Wed, 10 Apr 2013 00:20:05 +0000 (00:20 +0000)]
Fix for the subtype of range_min/max parameters in RNA Freestyle settings.
These parameters specify a distance in Blender units, so PROP_DISTANCE is more appropriate.
Suggested by Bastien Montagne through personal communications, thanks!

8 years agoFix for [#34934] Freestyle options are in wrong tab.
Tamito Kajiyama [Tue, 9 Apr 2013 23:54:11 +0000 (23:54 +0000)]
Fix for [#34934] Freestyle options are in wrong tab.

Added a label to guide users to line style settings in the Render Layers context
(in line with the similar labels found in the Cloth and Soft Body modifier panels),
so that Freestyle options per render layer can be more easily found.

8 years agoFix 34764: cycles issue rendering instanced mesh with NaN coordinates.
Brecht Van Lommel [Tue, 9 Apr 2013 20:48:53 +0000 (20:48 +0000)]
Fix 34764: cycles issue rendering instanced mesh with NaN coordinates.

8 years agoFix scons compile after GHOST_Sizer commit
Jens Verwiebe [Tue, 9 Apr 2013 18:58:01 +0000 (18:58 +0000)]
Fix scons compile after GHOST_Sizer commit

8 years agoFix #34938: Not freeing dynstr_cstring memory blocks when setting shape keys
Sergey Sharybin [Tue, 9 Apr 2013 17:31:34 +0000 (17:31 +0000)]
Fix #34938: Not freeing dynstr_cstring memory blocks when setting shape keys

In fact almost any rna pointer-to-string had a memory leak.

Patch by Jakub Zolcik (sftd) with minor modification.

8 years agoLive window resizing on Windows
Alexander Kuznetsov [Tue, 9 Apr 2013 17:21:05 +0000 (17:21 +0000)]
Live window resizing on Windows
Custom implementation for resizing (GHOST_SizerWin32)

Some things still don't work:
* esc cancel
* max windows size
* aero (sizing) snap on win7

hbrBackground = 0 to disable clear screen.

Thanks to dfelinto for help in finding of root cause.

8 years agoFixes for sequencer effects
Sergey Sharybin [Tue, 9 Apr 2013 16:20:24 +0000 (16:20 +0000)]
Fixes for sequencer effects

- Add and subtract effects will now affect on only RGB channels,
  and alpha of first input is used as an alpha for the result.

  Also solved creepyness with straight->premul->straight conversion
  in byte versions of add/subtract.

- Solved issue with multiply modifier, which lead to white*white
  not being white (was off by 1.0/255) due to wrong optimization
  of division by 255 with shr by 8.

  According to Ton this issue goes back to 2000!

This fixes #34811: Wrong result of add/subtract effects

8 years agoFix #34932: drivers on world nodes not updating on frame changes.
Brecht Van Lommel [Tue, 9 Apr 2013 15:30:15 +0000 (15:30 +0000)]
Fix #34932: drivers on world nodes not updating on frame changes.

8 years agoFix #34740: cycles rendering issue mixing glossy/glass BSDF's with zero or very
Brecht Van Lommel [Tue, 9 Apr 2013 15:24:20 +0000 (15:24 +0000)]
Fix #34740: cycles rendering issue mixing glossy/glass BSDF's with zero or very
low roughness and same index of refraction.

Problem was bad float precision due to low roughness, which caused the pdf for
the different closures to not match properly.

8 years agotemporary fix for saving custom template files similar to startup .blend file
Gaia Clary [Tue, 9 Apr 2013 15:18:31 +0000 (15:18 +0000)]
temporary fix for saving custom template files similar to startup .blend file

8 years agoVarious edits preparing addons' translations tools (not everything yet functionnal...
Bastien Montagne [Tue, 9 Apr 2013 08:56:35 +0000 (08:56 +0000)]
Various edits preparing addons' translations tools (not everything yet functionnal/tested, though).

Also workaround a nasty bug, where unregistered py classes remain listed in relevant __subclasses__() calls, which would lead to crash with python addons i18n tools (main translation was not affected, as messages extracting tools are executed in a brand new "factory startup" Blender ;) ).

8 years agoBGE: Non-mesh objects (lamps, empties, group instances, etc.) are now "No Collision...
Mitchell Stokes [Tue, 9 Apr 2013 05:02:10 +0000 (05:02 +0000)]
BGE: Non-mesh objects (lamps, empties, group instances, etc.) are now "No Collision" by default.

8 years agorigidbody operators poll functions were mixing up CTX_data_active_object/ED_object_ac...
Campbell Barton [Tue, 9 Apr 2013 01:43:39 +0000 (01:43 +0000)]
rigidbody operators poll functions were mixing up CTX_data_active_object/ED_object_active_context.
- replace ED_operator_rigidbody_add_poll with ED_operator_object_active_editable_mesh
- replace ED_operator_rigidbody_active_poll with ED_operator_scene_editable for operators that use the entire selection.
- remove rigid-body from objects that are converted from meshes to curves, while this isnt crashing it is confusing to see in the UI.

8 years agocode cleanup: abbreviations ob, con - aren't normally used in global identifiers.
Campbell Barton [Tue, 9 Apr 2013 01:36:44 +0000 (01:36 +0000)]
code cleanup: abbreviations ob, con - aren't normally used in global identifiers.

8 years agoPressing Ctrl+R when blender was built without bullet would crash.
Campbell Barton [Tue, 9 Apr 2013 00:57:47 +0000 (00:57 +0000)]
Pressing Ctrl+R when blender was built without bullet would crash.
- add checks so rigid-body operators only return FINISHED when they make some changes to the scene.
- remove (scene == NULL) checks, poll already catches these.

8 years agoAttempt to fix a potential name conflict between Freestyle and the compositor.
Tamito Kajiyama [Tue, 9 Apr 2013 00:46:49 +0000 (00:46 +0000)]
Attempt to fix a potential name conflict between Freestyle and the compositor.

A crash in the Freestyle renderer was reported by Ton on IRC with a stack trace
below.  Note that #2 is in Freestyle, whereas #1 is in the compositor.  The problem
was observed in a debug build on OS X 10.7 (gcc 4.2, openmp disabled, no llvm).

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
[Switching to process 72386 thread 0xf303]
0x0000000100c129f3 in NodeBase::~NodeBase (this=0x10e501c80) at COM_NodeBase.cpp:43
43 delete (this->m_outputsockets.back());
Current language:  auto; currently c++
(gdb) where
#0  0x0000000100c129f3 in NodeBase::~NodeBase (this=0x10e501c80) at COM_NodeBase.cpp:43
#1  0x0000000100c29066 in Node::~Node (this=0x10e501c80) at COM_Node.h:49
#2  0x000000010089c273 in NodeShape::~NodeShape (this=0x10e501c80) at NodeShape.cpp:43
#3  0x000000010089910b in NodeGroup::destroy (this=0x10e501da0) at NodeGroup.cpp:61
#4  0x00000001008990cd in NodeGroup::destroy (this=0x10e5014b0) at NodeGroup.cpp:59
#5  0x00000001008990cd in NodeGroup::destroy (this=0x114e18da0) at NodeGroup.cpp:59
#6  0x00000001007e6602 in Controller::ClearRootNode (this=0x114e19640) at Controller.cpp:329
#7  0x00000001007ea52e in Controller::LoadMesh (this=0x114e19640, re=0x10aba4638, srl=0x1140f5258) at Controller.cpp:302
#8  0x00000001008030ad in prepare (re=0x10aba4638, srl=0x1140f5258) at FRS_freestyle.cpp:302
#9  0x000000010080457a in FRS_do_stroke_rendering (re=0x10aba4638, srl=0x1140f5258) at FRS_freestyle.cpp:600
#10 0x00000001006aeb9d in add_freestyle (re=0x10aba4638) at pipeline.c:1584
#11 0x00000001006aceb7 in do_render_3d (re=0x10aba4638) at pipeline.c:1094
#12 0x00000001006ae061 in do_render_fields_blur_3d (re=0x10aba4638) at pipeline.c:1367
#13 0x00000001006afa16 in do_render_composite_fields_blur_3d (re=0x10aba4638) at pipeline.c:1815
#14 0x00000001006b04e4 in do_render_all_options (re=0x10aba4638) at pipeline.c:2021

Apparently a name conflict between the two Blender modules is taking place.
The present commit hence intends to address it by putting all the Freestyle C++
classes in the namespace 'Freestyle'.  This revision will also prevent potential
name conflicts with other Blender modules in the future.

Special thanks to Lukas Toenne for the help with C++ namespace.

8 years agofix [#34902] Unicode decode error in Python console when completing a method name...
Campbell Barton [Tue, 9 Apr 2013 00:42:01 +0000 (00:42 +0000)]
fix [#34902] Unicode decode error in Python console when completing a method name of text object in edit mode

8 years agofix for error in recent changes to beautify, clear edge tags before use.
Campbell Barton [Tue, 9 Apr 2013 00:07:47 +0000 (00:07 +0000)]
fix for error in recent changes to beautify, clear edge tags before use.

8 years agoFix #34921: cycles rendered a specific scene with a small high poly object
Brecht Van Lommel [Mon, 8 Apr 2013 20:04:03 +0000 (20:04 +0000)]
Fix #34921: cycles rendered a specific scene with a small high poly object
contained in a large low poly object very slow, due to failure case of fast
multithread BVH binning. Tweaked parameter now to avoid this.

8 years agoCompatibility and robustness:
Antony Riakiotakis [Mon, 8 Apr 2013 19:56:38 +0000 (19:56 +0000)]
Compatibility and robustness:

* Make masking depend on texture mode only if there's an actual texture
* New stroke system uses diameter to calculate stroke spacing, while old
texture painting brushes and system used radius. So divide spacing of
brushes in old files to half. Since I expect trunk users to have already
adapted this, I do this for an old subversion of blender.

8 years agoFix #34875: 0 digits of precision was not supported for FloatProperty, now
Brecht Van Lommel [Mon, 8 Apr 2013 18:55:08 +0000 (18:55 +0000)]
Fix #34875: 0 digits of precision was not supported for FloatProperty, now
you can specify precision=0 for this, and use -1 for the default 2.

8 years agoBundle adjustment improvements
Sergey Sharybin [Mon, 8 Apr 2013 17:05:52 +0000 (17:05 +0000)]
Bundle adjustment improvements

- Get rid of rotation matrix parameterization,
  use angle-axis instead.

  Also Joined rotation and translation into a
  single parameter block.

  This made minimization go significantly faster,
  like 1.3x times in average.

- Fix first camera when bundling. This is to
  address orientation ambiguity.

  Reconstruction result could still vary in
  size, but that's another issue to be addressed

Additional change:

Split EuclideanBundleCommonIntrinsics into
smaller functions, so it's now a bit easier
to follow.

8 years agoUpdate ceres to current upstream version
Sergey Sharybin [Mon, 8 Apr 2013 17:05:48 +0000 (17:05 +0000)]
Update ceres to current upstream version

Brings fixes for BLAS.

8 years agoTexture tools robustness:
Antony Riakiotakis [Mon, 8 Apr 2013 15:42:13 +0000 (15:42 +0000)]
Texture tools robustness:
* Pressing x or y to scale overlay immediately presents visual feedback
instead of requiring mouse motion
* Hide the ovelay icon when stencil is active since you can't deactivate

8 years agoFix #34908: compressed DDS files did not display properly when their mipmap levels
Brecht Van Lommel [Mon, 8 Apr 2013 15:39:38 +0000 (15:39 +0000)]
Fix #34908: compressed DDS files did not display properly when their mipmap levels
did not go down to 1x1 image size, need to set GL_TEXTURE_MAX_LEVEL then.

8 years agoA few more UI messages fixes...
Bastien Montagne [Mon, 8 Apr 2013 13:19:50 +0000 (13:19 +0000)]
A few more UI messages fixes...

8 years agofix for bug where notifiers could hold pointers to freed data which listeners would...
Campbell Barton [Mon, 8 Apr 2013 13:03:04 +0000 (13:03 +0000)]
fix for bug where notifiers could hold pointers to freed data which listeners would operate on.

8 years agorewind part of r55893, smooth-view for pan was annoying with mousewheel.
Campbell Barton [Mon, 8 Apr 2013 11:45:20 +0000 (11:45 +0000)]
rewind part of r55893, smooth-view for pan was annoying with mousewheel.

8 years ago2D stabilization default filter to bilinear
Sergey Sharybin [Mon, 8 Apr 2013 11:26:56 +0000 (11:26 +0000)]
2D stabilization default filter to bilinear

8 years agoCamera stabilization fixes and improvements
Sergey Sharybin [Mon, 8 Apr 2013 10:56:50 +0000 (10:56 +0000)]
Camera stabilization fixes and improvements

- Nearest interpolation was always used when there's
  no rotation for stabilization. Was a failure of
  optimization heuristic.

- Made 2d stabilization frame acquiring threaded.
  This function is only used for display and sequencer
  which will only benefit of threads here.

- Fixed bug introduced in r48749 which lead to
  re-making stable frame on every redraw.

8 years agofix for various crashes from incorrect poll functions.
Campbell Barton [Mon, 8 Apr 2013 10:03:51 +0000 (10:03 +0000)]
fix for various crashes from incorrect poll functions.
- bevel had incorrect cancel when initialization failed which could crash (own mistake).
- main particle poll function didnt check if the area/region were NULL.
- some uv operators needed space image but didnt check for it. also use uv_ prefix for most operator functions.

8 years agocode cleanup: unused macros
Campbell Barton [Mon, 8 Apr 2013 09:52:43 +0000 (09:52 +0000)]
code cleanup: unused macros

8 years agoExposed the bNodeSocket->limit value in RNA, so it can be redefined by pynodes. All...
Lukas Toenne [Mon, 8 Apr 2013 08:59:30 +0000 (08:59 +0000)]
Exposed the bNodeSocket->limit value in RNA, so it can be redefined by pynodes. All sockets will have strict n-to-1 connectivity by default, which is fine for data sockets, but things like geometry nodes with a more data-flow based connectivity for certain socket types will need to change this.

8 years agofix for own mistake in recent adjustments to transform, local without individual...
Campbell Barton [Mon, 8 Apr 2013 08:43:16 +0000 (08:43 +0000)]
fix for own mistake in recent adjustments to transform, local without individual-origin wasn't working.

8 years agoFix [#34920] Hit Spacebar, search for freestyle, click Move Freestyle Module - crash
Bastien Montagne [Mon, 8 Apr 2013 07:07:10 +0000 (07:07 +0000)]
Fix [#34920] Hit Spacebar, search for freestyle, click Move Freestyle Module - crash

Simply add a poll func to (re)move freestyle module ops, to check whether we actually have an active module in context.

8 years agofix [#34900] Building blender as a python module is broken in trunk
Campbell Barton [Mon, 8 Apr 2013 05:01:35 +0000 (05:01 +0000)]
fix [#34900] Building blender as a python module is broken in trunk
patch provided by reporter - Martijn Berger (juicyfruit)

also quiet warnings for headless mode.

8 years agoselect-camera operator could select hidden cameras, also disable freestyle for `make...
Campbell Barton [Mon, 8 Apr 2013 04:54:57 +0000 (04:54 +0000)]
select-camera operator could select hidden cameras, also disable freestyle for `make lite` target.

8 years agofix [#34903] Lock Camera to View allows Numpad orbit, but not Numpad pan
Campbell Barton [Mon, 8 Apr 2013 04:48:34 +0000 (04:48 +0000)]
fix [#34903] Lock Camera to View allows Numpad orbit, but not Numpad pan

8 years agostyle cleanup
Campbell Barton [Mon, 8 Apr 2013 04:39:09 +0000 (04:39 +0000)]
style cleanup

8 years agoinset and bevel could both be activated when there was no selection.
Campbell Barton [Mon, 8 Apr 2013 02:14:58 +0000 (02:14 +0000)]
inset and bevel could both be activated when there was no selection.

8 years agofix [#34918] Interactive bevel doesn't accept +/- keys to change # of segments, only...
Campbell Barton [Mon, 8 Apr 2013 02:04:26 +0000 (02:04 +0000)]
fix [#34918] Interactive bevel doesn't accept +/- keys to change # of segments, only scrollwheel

Since page-up/down isnt common for this use case, replace with pad+/-

8 years agofix [#34905] Text editor: replacing matches by empty string not allowed
Campbell Barton [Mon, 8 Apr 2013 01:31:41 +0000 (01:31 +0000)]
fix [#34905] Text editor: replacing matches by empty string not allowed

8 years agofix for fix: re-activating buttons to fix [#33466], meant the icon didn't get refresh...
Campbell Barton [Mon, 8 Apr 2013 00:32:32 +0000 (00:32 +0000)]
fix for fix: re-activating buttons to fix [#33466], meant the icon didn't get refreshed immediately.

8 years agosurpport converting boundary edges to curves with BKE_mesh_to_curve(). alt+c convert.
Campbell Barton [Mon, 8 Apr 2013 00:25:44 +0000 (00:25 +0000)]
surpport converting boundary edges to curves with BKE_mesh_to_curve(). alt+c convert.

8 years agoFix for [#34901] "Add SSS Preset" gives error.
Thomas Dinges [Sun, 7 Apr 2013 15:18:12 +0000 (15:18 +0000)]
Fix for [#34901] "Add SSS Preset" gives error.
* Mark Preset operator as 'Internal' only, so it does not show up inside the search menu. We cannot be sure if we meet the context requirements otherwise (unless we add a poll to each subclass).

8 years agoFix for [#34898] Typo in error message of mathutils.Vector
Thomas Dinges [Sun, 7 Apr 2013 15:09:06 +0000 (15:09 +0000)]
Fix for [#34898] Typo in error message of mathutils.Vector
* Also fixed some more cases of "more then" -> "more than".

8 years agoRaise magic numbers for OSL and OpenCollada (should have done that much earlier)...
Bastien Montagne [Sun, 7 Apr 2013 15:02:34 +0000 (15:02 +0000)]
Raise magic numbers for OSL and OpenCollada (should have done that much earlier), this will force rebuild of those libs next time, hopefully will solve user's issues with outdated libs.

8 years agorigidbody: Fix/workaround for transforming rigid bodies with parents
Sergej Reich [Sun, 7 Apr 2013 14:09:29 +0000 (14:09 +0000)]
rigidbody: Fix/workaround for transforming rigid bodies with parents

Since we use the rigid body transform when transforming rigid bodies
things like parents and constraints add an offset because rigid body
transforms are in global space.

Now we just don't take rigid body transform into account on simulation
start frame so there are no problems when doing the initial setup.

The problem still exists when simulation is running of course.
To properly fix this we'd have to solve parenting and constratins while
taking rigid bodies into account before and after transform.
We'll have to see if it's really needed, would like to avoid it though.

8 years agotransform: Code cleanup
Sergej Reich [Sun, 7 Apr 2013 14:09:27 +0000 (14:09 +0000)]
transform: Code cleanup

Reduce scope of a variable.

8 years agoMesh Tool,
Campbell Barton [Sun, 7 Apr 2013 11:41:37 +0000 (11:41 +0000)]
Mesh Tool,
inset interpolation now works for 'inset_region', enabled by default.


8 years agouse lowercase name for freestyle module (as with all other blender modules).
Campbell Barton [Sun, 7 Apr 2013 11:22:54 +0000 (11:22 +0000)]
use lowercase name for freestyle module (as with all other blender modules).

8 years agoReverting changes from r55873 for rna_define.c, sorry about that...
Bastien Montagne [Sun, 7 Apr 2013 10:25:59 +0000 (10:25 +0000)]
Reverting changes from r55873 for rna_define.c, sorry about that...

svn merge -r55873:55872 ./source/blender/makesrna/intern/rna_define.c

8 years agoFreestyle UI:
Thomas Dinges [Sun, 7 Apr 2013 10:23:48 +0000 (10:23 +0000)]
Freestyle UI:
* Remove "Unit" prefix from line thickness property. (discussed with Tamito in IRC)

8 years agoFix for Unicode literal (causing a compile error in VS 2008).
Tamito Kajiyama [Sun, 7 Apr 2013 10:21:28 +0000 (10:21 +0000)]
Fix for Unicode literal (causing a compile error in VS 2008).

8 years agoUsual typo fixes... ;)
Bastien Montagne [Sun, 7 Apr 2013 10:21:22 +0000 (10:21 +0000)]
Usual typo fixes... ;)