8 years agoMove opencl and reigidbody from source/blender/ to intern/
Sergey Sharybin [Fri, 1 Feb 2013 06:24:49 +0000 (06:24 +0000)]
Move opencl and reigidbody from source/blender/ to intern/

This modules does not depend on any blender-specific data
structures or algorithms and due to our policy better be
placed to intern/

Shall be no functional changes, tested CMake and SCons on
Linux, hopefully other platforms will work as well.

P.S. SVN history shall be preserved for the files.

8 years agofix for [#33803], error was caused by sloppy coding in r53487, converting trackpad...
Campbell Barton [Fri, 1 Feb 2013 01:11:27 +0000 (01:11 +0000)]
fix for [#33803], error was caused by sloppy coding in r53487, converting trackpad to wheel events.

if you moved your mouse fast over a button the event would get converted to a wheel, even if the input event wasnt a MOUSEPAN event.

When Alt was held this was noticable because Alt+Wheel changes button values.

added an assert to avoid this happening again.

8 years agocode cleanup: make wmEvent's 'const' in interface code (reduces manual checking that...
Campbell Barton [Fri, 1 Feb 2013 01:01:20 +0000 (01:01 +0000)]
code cleanup: make wmEvent's 'const' in interface code (reduces manual checking that they are not modified).

8 years agoexpose WITH_BOOST as a cmake option, this just disables boost deps since it was becom...
Campbell Barton [Thu, 31 Jan 2013 23:25:06 +0000 (23:25 +0000)]
expose WITH_BOOST as a cmake option, this just disables boost deps since it was becoming annoying to remember all of them.

8 years agofix error with flipped vertex slide failing, also fix bug where you could be flipped...
Campbell Barton [Thu, 31 Jan 2013 22:18:37 +0000 (22:18 +0000)]
fix error with flipped vertex slide failing, also fix bug where you could be flipped and in proportional vertex slide mode.

8 years agoui_but_anim_expression_create was never returning true, even when it succeeded.
Campbell Barton [Thu, 31 Jan 2013 21:56:14 +0000 (21:56 +0000)]
ui_but_anim_expression_create was never returning true, even when it succeeded.

8 years agostyle cleanup
Campbell Barton [Thu, 31 Jan 2013 21:15:38 +0000 (21:15 +0000)]
style cleanup

8 years agodisable xinerama and xinput if libraries are missing.
Campbell Barton [Thu, 31 Jan 2013 20:41:47 +0000 (20:41 +0000)]
disable xinerama and xinput if libraries are missing.

8 years agoOSL 1.3x / Windows 64:
Thomas Dinges [Thu, 31 Jan 2013 17:38:09 +0000 (17:38 +0000)]
OSL 1.3x / Windows 64:
* Added missing define into SConscript file. This also makes r54232 obsolete, so removing this again.

8 years agoFix #34034: keyframe display of color/curve buttons was broken after revision
Brecht Van Lommel [Thu, 31 Jan 2013 16:19:44 +0000 (16:19 +0000)]
Fix #34034: keyframe display of color/curve buttons was broken after revision
53132 which changed the RNA index to -1 for these. Also made it so that these
buttons no longer display "Insert Single Keyframe" and only "Insert Keyframe"
as you can't edit individual components here so it's only confusing.

8 years agoCycles: disable unnecessary preview render job for per node previews, they don't
Brecht Van Lommel [Thu, 31 Jan 2013 15:31:47 +0000 (15:31 +0000)]
Cycles: disable unnecessary preview render job for per node previews, they don't
work so was just wasting CPU time.

8 years ago Apply patch [#33999] Wrapping mode for the "translate" compositing node
Monique Dewanchand [Thu, 31 Jan 2013 15:08:37 +0000 (15:08 +0000)]
 Apply patch [#33999] Wrapping mode for the "translate" compositing node

this patch enables the translate node to wrap around the image borders. This is especially needed if the translate node is not used to position elements on a layer but when it is used instead for seamless backgrounds like mountains or clouds that should be repeated over time (by animating the x/y values).

No trunk without docs! So here is my documentation:

The code is properly documented and should be easy to read and understand. When there are any problems or issues, please comment, I'll tackle them right away!

Greetings, Thomas Beck

 * optimized determination dependant areas
 * fixed some issues with scale node

There are still some issues when scaling very small values (x=0.0001)

 - At Mind -

8 years agoFix UI translation partly missing in scons builds (reported by Leon Cheung and Gabrie...
Bastien Montagne [Thu, 31 Jan 2013 14:25:07 +0000 (14:25 +0000)]
Fix UI translation partly missing in scons builds (reported by Leon Cheung and Gabriel Gazzán on ML, and lockal on IRC, thanks).

The problem is that, when HAVE__BOOL is not defined (as it is the case in scons currently), BLI_utildefines.h defines bool as a standard type. Was using signed char, which makes eg "bool foo = 1024" be false (overflow)! Especially nasty when using bitflags (think we have been lucky to not have worse bugs because of that)!

So changed fallback bool type to unsigned int.

8 years agoFix #33874: active UV map chooser in uv editor should not have X button as you
Brecht Van Lommel [Thu, 31 Jan 2013 13:44:13 +0000 (13:44 +0000)]
Fix #33874: active UV map chooser in uv editor should not have X button as you
can't not have an active UV map.

8 years agoAttempt to fix cycles OSL link error on windows 64 bit.
Brecht Van Lommel [Thu, 31 Jan 2013 13:44:03 +0000 (13:44 +0000)]
Attempt to fix cycles OSL link error on windows 64 bit.

8 years agoFix bevel bug #33906, unwanted distortion with skewed meshes.
Howard Trickey [Thu, 31 Jan 2013 12:54:06 +0000 (12:54 +0000)]
Fix bevel bug #33906, unwanted distortion with skewed meshes.

The code for making a rounded profile edge at a vertex needed
a special case for when that profile is on the third face
(the one not touched by the beveled edge) when only one edge
is beveled and the three faces are not orthogonal.

8 years agoFix scons building under unix. Now we should really have only *one* '/usr/lib' lib...
Bastien Montagne [Thu, 31 Jan 2013 12:24:12 +0000 (12:24 +0000)]
Fix scons building under unix. Now we should really have only *one* '/usr/lib' lib search path, in last position! Previously we could have a bunch of those, even in first position, which would e.g. prevent linking against a custom boost in /opt/lib/boost if you had a system boost installed...

8 years agoreplace BLI_make_file_string with BLI_join_dirfile since its much more simple and...
Campbell Barton [Thu, 31 Jan 2013 11:17:08 +0000 (11:17 +0000)]
replace BLI_make_file_string with BLI_join_dirfile since its much more simple and does whats needed.

8 years agowrite all crashlogs into the temp directory (not next to blend files).
Campbell Barton [Thu, 31 Jan 2013 11:10:43 +0000 (11:10 +0000)]
write all crashlogs into the temp directory (not next to blend files).

8 years agoAdd Xinerama support for GHOST_GetMainDisplayDimensions() so X11 works as it should...
Campbell Barton [Thu, 31 Jan 2013 11:05:09 +0000 (11:05 +0000)]
Add Xinerama support for GHOST_GetMainDisplayDimensions() so X11 works as it should (previously would include all monitors).

Now the active monitor size is used on startup.
Currently the cursor position is checked for intersection with the monitor bounds to find the active screen.

8 years agoadd ghost function getAllDisplayDimensions, GHOST_GetAllDisplayDimensions
Campbell Barton [Thu, 31 Jan 2013 10:42:26 +0000 (10:42 +0000)]
add ghost function getAllDisplayDimensions, GHOST_GetAllDisplayDimensions

This returns the desktop size, not just the size of the active monitor, useful since this constrains the mouse and we dont have to detect the active monitor (which isn't so straightforward with xlib).

carbon/cocoa are TODO, they still use getMainDisplayDimensions().

8 years agostart window non-maximized since this is more the `default` state for windows. (linux...
Campbell Barton [Thu, 31 Jan 2013 09:53:34 +0000 (09:53 +0000)]
start window non-maximized since this is more the `default` state for windows. (linux/win only)

8 years agoFix msvc compile
Miika Hamalainen [Thu, 31 Jan 2013 08:55:00 +0000 (08:55 +0000)]
Fix msvc compile

8 years agopatch [#33985] Added FModifierEnvelope control_point add remove to API
Campbell Barton [Thu, 31 Jan 2013 08:19:11 +0000 (08:19 +0000)]
patch [#33985] Added FModifierEnvelope control_point add remove to API
from Peter Staples (batfinger)

8 years agofix [#34050] Regression from 2.49, "Release confirms" interferes with loop cutting
Campbell Barton [Thu, 31 Jan 2013 06:38:35 +0000 (06:38 +0000)]
fix [#34050] Regression from 2.49, "Release confirms" interferes with loop cutting

8 years agoinitializing maximized/fullscreen windows in x11 would start normal, then maximize...
Campbell Barton [Thu, 31 Jan 2013 05:55:57 +0000 (05:55 +0000)]
initializing maximized/fullscreen windows in x11 would start normal, then maximize - causing noticeable flicker.

8 years agofix/workaround [#34026] Blender starts with too large window
Campbell Barton [Thu, 31 Jan 2013 05:37:52 +0000 (05:37 +0000)]
fix/workaround [#34026] Blender starts with too large window

Minimal change to stop blender window opening across all monitors.

Workaround the problem by starting maximized, and using sane defaults for non maximized window.

I checked on a few different solutions to this, Using Xinerama works OK, but with different size monitors
and not knowing which one the window-manager will pick in advance - this can be wrong too.

Now instead of opening with the screen size, just start maximized and use a default size for the non-maximized window (clamped by the screen size).

This isn't perfect since you could have 2x monitors at 1024x768, open blender, un-maximize - and blender window would cross over into the second monitor.

8 years agoGPencilStrokePoints.add() - use MEM_recallocN to initialize newly created points
Dan Eicher [Wed, 30 Jan 2013 23:54:49 +0000 (23:54 +0000)]
GPencilStrokePoints.add() - use MEM_recallocN to initialize newly created points

8 years agoCycles:
Thomas Dinges [Wed, 30 Jan 2013 22:21:55 +0000 (22:21 +0000)]
* One more fix for Boost Linker errors with new OSL master branch.

8 years agoFix cycles windows link errors when building with OSL master branch.
Brecht Van Lommel [Wed, 30 Jan 2013 21:58:47 +0000 (21:58 +0000)]
Fix cycles windows link errors when building with OSL master branch.

8 years agostyle cleanup
Campbell Barton [Wed, 30 Jan 2013 21:17:38 +0000 (21:17 +0000)]
style cleanup

8 years agoadd BLI_mempool_as_arrayN utility function for getting the mempool as a new array...
Campbell Barton [Wed, 30 Jan 2013 21:17:09 +0000 (21:17 +0000)]
add BLI_mempool_as_arrayN utility function for getting the mempool as a new array (utility function currently unused).

8 years agoFix #33984: cycles shadow pass problem with CUDA.
Brecht Van Lommel [Wed, 30 Jan 2013 17:04:51 +0000 (17:04 +0000)]
Fix #33984: cycles shadow pass problem with CUDA.

8 years agoCycles: make multiple importance sampling for lamps an option per lamp now,
Brecht Van Lommel [Wed, 30 Jan 2013 15:57:15 +0000 (15:57 +0000)]
Cycles: make multiple importance sampling for lamps an option per lamp now,
disabled by default for backwards compatibility.

8 years agoPatch by erwin94 [#34015] dilate/erode multithreading
Monique Dewanchand [Wed, 30 Jan 2013 15:43:13 +0000 (15:43 +0000)]
Patch by erwin94 [#34015] dilate/erode multithreading

another patch for the dilate/erode step method, still without any functional changes.
This time it keeps the general algorithm but uses the tile system to make it
multithreaded. I could not measure a speedup on my 2-core laptop, but hope that
it will be faster for more cores. The immediate speedup that is very visible though is
that tiles come in as soon as they are calculated and a dilate/erode node does not
block the whole image to be calculated.

till then, David.

8 years agostartup.blend edits
Campbell Barton [Wed, 30 Jan 2013 15:34:02 +0000 (15:34 +0000)]
startup.blend edits
- make timeline less tall.
- make outliner more tall.
- set node and image channel displayes to RGBA.

8 years agodisable ubuntu unity workaround, causes issues with modifier keys held doun with...
Campbell Barton [Wed, 30 Jan 2013 13:44:24 +0000 (13:44 +0000)]
disable ubuntu unity workaround, causes issues with modifier keys held doun with multiple windows.

no time to fix now so disabling.

8 years agoCycles material preview: fix for generated/packed/movie files
Sergey Sharybin [Wed, 30 Jan 2013 13:42:12 +0000 (13:42 +0000)]
Cycles material preview: fix for generated/packed/movie files

Issue was caused by cycles trying to find builtin images in a main
database and in case of preview render images are not in database,
they're just referenced by shader node tree.

Now builtin images in cycles have got void* pointer to store data
needed to load builtin images.

In case ob blender session, this pointer will store pointer from
PointerRNA for image datablock and used later to construct Image
class based on this pointer.

This also saves database lookup for final render which is nice :)

Reviewed by Brecht.

8 years agoAdd active region for operator execution.
Campbell Barton [Wed, 30 Jan 2013 12:22:02 +0000 (12:22 +0000)]
Add active region for operator execution.

This means you can for example, uv unwrap in quad-view and change settings in the toolbar without defaulting back to the first quad-view region available.

This may be displayed to the user later, for now this is set on executing registrable operators.

8 years agofix [#33740] Incorecct UV mapping from camera view
Campbell Barton [Wed, 30 Jan 2013 11:06:02 +0000 (11:06 +0000)]
fix [#33740] Incorecct UV mapping from camera view

Bug was in fact that the options for this operator couldn't be accessed (unless you knew to press f6), now the redo panel sets the window area before polling.

Now other operators that use the window region will show settings too.

8 years agocmake config files BOOL type was ignored by cmake.
Campbell Barton [Wed, 30 Jan 2013 07:33:26 +0000 (07:33 +0000)]
cmake config files BOOL type was ignored by cmake.

8 years agoBGE: Some various changes to make moving the character physics type easier:
Mitchell Stokes [Wed, 30 Jan 2013 05:55:17 +0000 (05:55 +0000)]
BGE: Some various changes to make moving the character physics type easier:
  * Undoing the previous applyMovement() changes for characters. This was causing bugs for the Motion Actuator.
  * Creating a Character Motion type for the Motion Actuator with specific controls for characters. This includes moving, rotating and jumping.
  * Adding a KX_CharacterWrapper.walkDirection to set the character's direction and speed.

Note, this also resolves the following bugs:
[#33585] "Setting dLoc of motion actuator [0,0,0] via python won't stop object" reported by Manuel Bellersen (urfoex)
[#33503] "Character physics type won´t accept more than one motion anymore" reported by Mr Larodos

8 years agopatch [#33886] Combine Dissolve Menu with Delete Menu
Campbell Barton [Wed, 30 Jan 2013 05:19:27 +0000 (05:19 +0000)]
patch [#33886] Combine Dissolve Menu with Delete Menu

8 years agopatch [#34039] Fix Alt key glitch on Unity desktop
Campbell Barton [Wed, 30 Jan 2013 04:12:32 +0000 (04:12 +0000)]
patch [#34039] Fix Alt key glitch on Unity desktop
by Shinsuke Irie (irie) with own minor changes.

8 years agobridge tool could make bow-tie quads when given 2 isolated edges.
Campbell Barton [Wed, 30 Jan 2013 03:12:19 +0000 (03:12 +0000)]
bridge tool could make bow-tie quads when given 2 isolated edges.

8 years agofix [#33987] X-ray mode on bones nullifies weight paint mode
Campbell Barton [Wed, 30 Jan 2013 02:27:13 +0000 (02:27 +0000)]
fix [#33987] X-ray mode on bones nullifies weight paint mode

This effected vertex paint mode too.

8 years agoenable continuous grab for sliders, initially this was disabled because we didnt...
Campbell Barton [Tue, 29 Jan 2013 23:33:58 +0000 (23:33 +0000)]
enable continuous grab for sliders, initially this was disabled because we didnt support un-grabbing at the new slider location.

8 years agoupdate themes.
Campbell Barton [Tue, 29 Jan 2013 21:58:07 +0000 (21:58 +0000)]
update themes.

8 years agoFix #34016: add backwards compatibility for deprecated region.callback_add
Brecht Van Lommel [Tue, 29 Jan 2013 21:34:58 +0000 (21:34 +0000)]
Fix #34016: add backwards compatibility for deprecated region.callback_add
python function, this keep addons working. It's better to use the new function
but might as well avoid breaking compatibility here.

8 years agocorrection to r54188, also don't attempt to triangulate triangles.
Campbell Barton [Tue, 29 Jan 2013 20:49:40 +0000 (20:49 +0000)]
correction to r54188, also don't attempt to triangulate triangles.

8 years agoFix [#34008]: Scaling Smoke Domain In Z-Axis Crashes Blender
Miika Hamalainen [Tue, 29 Jan 2013 19:27:05 +0000 (19:27 +0000)]
Fix [#34008]: Scaling Smoke Domain In Z-Axis Crashes Blender

Also as minor change skip base_res update on domain step if adaptive domain isn't enabled.

8 years agoFix #34031: in the keymap editor, Timer and Text Input types did not show field
Brecht Van Lommel [Tue, 29 Jan 2013 17:30:30 +0000 (17:30 +0000)]
Fix #34031: in the keymap editor, Timer and Text Input types did not show field
to edit the operator name.

8 years agoCycles: collapse preview render panel by default. It's a matter of personal
Brecht Van Lommel [Tue, 29 Jan 2013 17:30:26 +0000 (17:30 +0000)]
Cycles: collapse preview render panel by default. It's a matter of personal
preference, but it slows down 3D view rendering to have two renders going so
I rather disable it by default.

8 years agoFix #34003: hide confusing unlink button for pinned datablock in properties editor.
Brecht Van Lommel [Tue, 29 Jan 2013 17:15:51 +0000 (17:15 +0000)]
Fix #34003: hide confusing unlink button for pinned datablock in properties editor.

8 years agoskip calculating the normal for each face when triangulating, all callers make sure...
Campbell Barton [Tue, 29 Jan 2013 15:05:23 +0000 (15:05 +0000)]
skip calculating the normal for each face when triangulating, all callers make sure its valid. also remove some commented code (more then one generation of bmesh old).

8 years agoPreview Render:
Thomas Dinges [Tue, 29 Jan 2013 14:52:26 +0000 (14:52 +0000)]
Preview Render:
* Changing Material Preview type (Sphere, Monkey...) should not trigger ND_SHADING_DRAW. Caused Cycles 3D View render to re-start.

It now only triggers an ND_SHADER update, which will be handled inside the Properties Editor Listener and executes a Preview Re-Render.

8 years agoCycles Hair: Addition of render settings and static BVH strand width scaling
Stuart Broadfoot [Tue, 29 Jan 2013 12:32:43 +0000 (12:32 +0000)]
Cycles Hair: Addition of render settings and static BVH strand width scaling

Addition of a RNA function to toggle between the hair settings and rebuild the cache. This enables the usage of the render step, child number and full display percentage with f12 rendering.

A scaling to the strand radius has also been added for the static bvh. This only matches up with dynamic for uniform scaling.

A very small fix is included for multiple uvs/vertex colours when using child particles.

8 years agoAlpha display changes:
Sergey Sharybin [Tue, 29 Jan 2013 12:03:38 +0000 (12:03 +0000)]
Alpha display changes:

Previous alpha-overing on black for RGB display wasn't so much useful
for artists, changed in a way:

- Made RGBA display default for node editor backdrop and image editor,
  so it'll be clear that image does have alpha channel
- RGB display will ignore alpha channel completely

Reshuffled buttons for RGBA/RGB so now the order is following:
    RGBA | RGB | Alpha | Z

Still to come: startup.blend shall be altered to make RGBA default.

8 years agosculpt, replace bmo call to triangulate with BM_mesh_triangulate()
Campbell Barton [Tue, 29 Jan 2013 10:43:15 +0000 (10:43 +0000)]
sculpt, replace bmo call to triangulate with BM_mesh_triangulate()

8 years agoTriangulate modifier no longer uses bmesh operator api call, instead add a BM_mesh_tr...
Campbell Barton [Tue, 29 Jan 2013 10:31:05 +0000 (10:31 +0000)]
Triangulate modifier no longer uses bmesh operator api call, instead add a BM_mesh_triangulate() function. Gives ~2x speedup in my tests on an optimized build.

8 years agoSome optimization (their is much more possible here, but it will have to wait for...
Bastien Montagne [Tue, 29 Jan 2013 08:34:26 +0000 (08:34 +0000)]
Some optimization (their is much more possible here, but it will have to wait for complete refactor I’m working on currently).

8 years agoFix #34009: multi user curves + deform modifier behavior
Sergey Sharybin [Tue, 29 Jan 2013 08:21:21 +0000 (08:21 +0000)]
Fix #34009: multi user curves + deform modifier behavior

Issue was caused by storing BB calculated from final displist in
Curve datablock and not having Object's BB at all. This is not
clear at how could have been worked for so long.

Changed it so Curve's BB is calculated from non-deformed displist,
which matches BKE_object_min_max and BKE_curve_texspace_calc and
made it so Object's BB would be calculated from final displist.

8 years agofix [#34024] delete - Edge loop crash
Campbell Barton [Tue, 29 Jan 2013 08:19:23 +0000 (08:19 +0000)]
fix [#34024] delete - Edge loop crash

8 years agoMore UI messages tweaks and fixes. Please do not use points inside tooltips, unless...
Bastien Montagne [Tue, 29 Jan 2013 08:01:50 +0000 (08:01 +0000)]
More UI messages tweaks and fixes. Please do not use points inside tooltips, unless they are absolutely mandatory (they are ugly, as we do not have final points!).

8 years agotweak to edge slide - use a quads opposite vertex when both edges share a quad, gives...
Campbell Barton [Tue, 29 Jan 2013 05:30:39 +0000 (05:30 +0000)]
tweak to edge slide - use a quads opposite vertex when both edges share a quad, gives nicer results.

8 years agofix for fix, ugh!, vertex slide with concave/convex ngons & normal flipping should...
Campbell Barton [Tue, 29 Jan 2013 05:18:30 +0000 (05:18 +0000)]
fix for fix, ugh!, vertex slide with concave/convex ngons & normal flipping should now work properly in all cases.
... somehow I managed to make test-cases that worked in previous commits but failed in other cases.

8 years agoCorrect fix for r54164, the testcase I was using worked but different edge slide...
Campbell Barton [Tue, 29 Jan 2013 03:25:47 +0000 (03:25 +0000)]
Correct fix for r54164, the testcase I was using worked but different edge slide examples didn't.

Edge slide needed to check for concave ngons too.

add BM_loop_is_convex() and expose to python too.

8 years agoSkeleton Sketching bugfixes/tweaks
Joshua Leung [Tue, 29 Jan 2013 03:04:24 +0000 (03:04 +0000)]
Skeleton Sketching bugfixes/tweaks

* Disabling Skeleton Sketching now refreshes the view properly, so that strokes
don't linger on even after being disabled
* Added the delete operator to the panel

8 years agofix for r54166, the average edge length needs to be maintained.
Campbell Barton [Tue, 29 Jan 2013 02:17:19 +0000 (02:17 +0000)]
fix for r54166, the average edge length needs to be maintained.

8 years agoBugfix [#34012] Skeleton Sketching settings unclear
Joshua Leung [Tue, 29 Jan 2013 02:00:33 +0000 (02:00 +0000)]
Bugfix [#34012] Skeleton Sketching settings unclear

Although the bug report here wasn't exactly clear about what exactly was wrong,
it soon became apparent that the UI stuff here was in need of some love.

* Ported over missing tooltips from 2.49 (i.e. most of them)
* Fixed a few incorrect tooltips (mostly the subdivision length settings)
* Made the autonaming and number/side settings slightly clearer - number/side
are used to replace placeholders in the names of template bones (&N and &S
respectively) when autonaming is disabled. When it is enabled, these values are
determined automatically.

8 years agoWindow menu: Make Screencast (should be Save?, to match screenshot?) option.
Pablo Vazquez [Tue, 29 Jan 2013 01:43:03 +0000 (01:43 +0000)]
Window menu: Make Screencast (should be Save?, to match screenshot?) option.

Thought of setting the operator context before so it wouldnt invoke the confirmation dialog, but better leave it by default to confirm since it might be clicked by mistake and start dumping video/image-sequence and can get annoying.

8 years agominor improvement to edge slide, normalize the edge vectors that accumulate the direc...
Campbell Barton [Tue, 29 Jan 2013 01:37:04 +0000 (01:37 +0000)]
minor improvement to edge slide, normalize the edge vectors that accumulate the direction, otherwise longer edges would skew the direction.

8 years agocode cleanup: add some comments about to get_next_loop() for edge slide, also name...
Campbell Barton [Tue, 29 Jan 2013 01:31:42 +0000 (01:31 +0000)]
code cleanup: add some comments about to get_next_loop() for edge slide, also name vars better (was using meaningless names).

8 years agofix for edge slide bug, when there were no edges to slide along the direction calcula...
Campbell Barton [Tue, 29 Jan 2013 01:23:33 +0000 (01:23 +0000)]
fix for edge slide bug, when there were no edges to slide along the direction calculated from the face would be wrong half the time (depending on the edge loop direction which is arbitrary).

8 years agoWhitespace
Joshua Leung [Tue, 29 Jan 2013 01:23:29 +0000 (01:23 +0000)]

8 years agocode cleanup: just variable naming
Campbell Barton [Tue, 29 Jan 2013 01:02:45 +0000 (01:02 +0000)]
code cleanup: just variable naming

8 years agocode cleanup: var rename and add assert, when writing to out of bounds array.
Campbell Barton [Tue, 29 Jan 2013 00:20:04 +0000 (00:20 +0000)]
code cleanup: var rename and add assert, when writing to out of bounds array.
minor edit to recent tip change.

8 years agoBetter tooltips for the Full Screen option on Save Screenshot/Screencast operators.
Pablo Vazquez [Mon, 28 Jan 2013 23:58:09 +0000 (23:58 +0000)]
Better tooltips for the Full Screen option on Save Screenshot/Screencast operators.

8 years agoBugfix [#34019] Limit Constraints still affected transforms when turned off
Joshua Leung [Mon, 28 Jan 2013 23:57:02 +0000 (23:57 +0000)]
Bugfix [#34019] Limit Constraints still affected transforms when turned off

Limit Constraints (i.e. Limit Location/Rotation/Scale/Distance) with 'For
Transform' option enabled would still be applied when transforming objects even
when they were turned off using the eye icon in the constraint panel headers.
The "off" flag was never added to the checks for muted or disabled constraints
to be skipped here.

8 years agoInfo Editor: Adding Save Screenshot option to the Window menu, was only available...
Pablo Vazquez [Mon, 28 Jan 2013 23:06:27 +0000 (23:06 +0000)]
Info Editor: Adding Save Screenshot option to the Window menu, was only available through search or shortcut (CTRL+F3)

8 years agoCycles Preview: Rotated Suzanne a bit for better angle. Raised the intensity of the...
Pablo Vazquez [Mon, 28 Jan 2013 22:08:30 +0000 (22:08 +0000)]
Cycles Preview: Rotated Suzanne a bit for better angle. Raised the intensity of the mesh light, and moved the mesh/lamp to also be in the layer of World Sphere preview (was black previously, since it had no lamps)

8 years agoCycles Preview Blend:
Thomas Dinges [Mon, 28 Jan 2013 19:15:47 +0000 (19:15 +0000)]
Cycles Preview Blend:
* Added UV Mapping for objects, so Image textures will work.

8 years agoFix [#34023] r54146 breaks name-display of default "UI_UL_list"
Bastien Montagne [Mon, 28 Jan 2013 18:46:04 +0000 (18:46 +0000)]
Fix [#34023] r54146 breaks name-display of default "UI_UL_list"

draw_item *is* optional (it then uses default C function), even though there is not much sense to register a class without it, except for our default UI_UL_list!

8 years agoScons:
Thomas Dinges [Mon, 28 Jan 2013 17:49:15 +0000 (17:49 +0000)]
* Fix for new cycles_preview.blend

8 years agoCycles: preview rendering support for world/material/lamp.
Brecht Van Lommel [Mon, 28 Jan 2013 17:37:51 +0000 (17:37 +0000)]
Cycles: preview rendering support for world/material/lamp.

Patch by Sergey, .blend by Thomas and some further tweaks by me.

Still to solve later: allow external engines to specify own preview .blend, for
now the code here is doing too much magic hacking on the preview scene still.

8 years agoFix for RNA function flag conflict: FUNC_USE_REPORTS was using same bits as FUNC_REGI...
Lukas Toenne [Mon, 28 Jan 2013 13:33:40 +0000 (13:33 +0000)]
Fix for RNA function flag conflict: FUNC_USE_REPORTS was using same bits as FUNC_REGISTER. Previously errors resulting from this could go unnoticed because of broken FUNC_REGISTER test (all functions considered optional). Watch this in future ...

8 years agoFix #34004: crash when canceling ongoing render with scene strip
Sergey Sharybin [Mon, 28 Jan 2013 13:29:10 +0000 (13:29 +0000)]
Fix #34004: crash when canceling ongoing render with scene strip

Issue was caused by recursive call of RE_BlenderFrame. Solved by
reshuffling image pool init/free in do_render_all_options.

Should be harmless, but doublecheck on this is welcome.

8 years agoFix for wrong icons buffer initialization happens for cards
Sergey Sharybin [Mon, 28 Jan 2013 12:57:56 +0000 (12:57 +0000)]
Fix for wrong icons buffer initialization happens for cards
without NPOT support. Was wrong stride used for memcpy leading
to wrong memory writes in def_internal_icon.

It's a regression since matcap commit.

Should fix the following reports:
- #33993: Crash on Blender startup (Vista x32)
- #33996: Latest build crashes on win xp

8 years agofix [#34018] Delete Edge Loop undo works not als expected.
Campbell Barton [Mon, 28 Jan 2013 12:42:38 +0000 (12:42 +0000)]
fix [#34018] Delete Edge Loop undo works not als expected.

8 years agoFix for the is_registered_optional property of RNA functions, now only returns true...
Lukas Toenne [Mon, 28 Jan 2013 12:34:18 +0000 (12:34 +0000)]
Fix for the is_registered_optional property of RNA functions, now only returns true for actually optional functions.

8 years agofix for rigid body assuming active object would be selected, also don't check length...
Campbell Barton [Mon, 28 Jan 2013 12:24:25 +0000 (12:24 +0000)]
fix for rigid body assuming active object would be selected, also don't check length of selected objects in poll function (getting and throwing away object selection array on every redraw is no good).

8 years agoFix for errors caused by fixing RNA function register flags. Default UIList class...
Lukas Toenne [Mon, 28 Jan 2013 12:18:00 +0000 (12:18 +0000)]
Fix for errors caused by fixing RNA function register flags. Default UIList class now has a dummy draw_item callback. Panel draw_header is now optional (most panel classes don't define it).

8 years agoFix for RNA FUNC_REGISTER/FUNC_REGISTER_OPTIONAL flags: The test in bpy validation...
Lukas Toenne [Mon, 28 Jan 2013 12:17:49 +0000 (12:17 +0000)]
Fix for RNA FUNC_REGISTER/FUNC_REGISTER_OPTIONAL flags: The test in bpy validation of classes actually always passed for mandatory functions. This only worked since they all use fallback default implementations internally.

8 years agouse more conventional names in rigid body script.
Campbell Barton [Mon, 28 Jan 2013 12:15:50 +0000 (12:15 +0000)]
use more conventional names in rigid body script.

8 years agorigidbody: Don't show dialog for "Connect" operator
Sergej Reich [Mon, 28 Jan 2013 11:56:01 +0000 (11:56 +0000)]
rigidbody: Don't show dialog for "Connect" operator

Use redo last panel to change settings now.
This is more in line with how the rest of blender operates.

Also fix tootip

8 years agoadd mathutils function to intersect 2 circles. Converted to C from a python script...
Campbell Barton [Mon, 28 Jan 2013 11:52:17 +0000 (11:52 +0000)]
add mathutils function to intersect 2 circles. Converted to C from a python script by Alex Fraser.

8 years agoFix for a nasty glicth found by Irie Shinsuke in Freestyle branch.
Bastien Montagne [Mon, 28 Jan 2013 08:58:20 +0000 (08:58 +0000)]
Fix for a nasty glicth found by Irie Shinsuke in Freestyle branch.

Headerless panels are not supposed to be closed ever. But if user saves a blend with a stardard panel closed, then dev decides to make this panel headerless, when user open again its blend, the panel is closed and has no more header, so it becomes invisible!

This commit simply checks, at draw time, that a headerless panel is never closed (and repoen it if necessary)!

8 years agoadd collision masks to copy-game-physics settings. (another GGJ missing feature :) )
Campbell Barton [Mon, 28 Jan 2013 06:56:47 +0000 (06:56 +0000)]
add collision masks to copy-game-physics settings. (another GGJ missing feature :) )

8 years ago[BGE Controllers] reverting my own commits #54103 and #54102, no longer necessary...
Dalai Felinto [Mon, 28 Jan 2013 06:44:06 +0000 (06:44 +0000)]
[BGE Controllers] reverting my own commits #54103 and #54102, no longer necessary after rev/fix #54136

8 years agoBGE Py API docs: correct references to bge.keys
Campbell Barton [Mon, 28 Jan 2013 06:39:23 +0000 (06:39 +0000)]
BGE Py API docs: correct references to bge.keys