blender.git
7 years agoPatch [#31279] clarifiy a python error-string (when incorrectly specifying enum
Joshua Leung [Fri, 4 May 2012 14:34:10 +0000 (14:34 +0000)]
Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum
items from python)

Thanks Philipp Oeser (lichtwerk)

7 years agoPatch [#30654] Wiki Quick Hack: Text editor move lines up/down
Joshua Leung [Fri, 4 May 2012 14:27:13 +0000 (14:27 +0000)]
Patch [#30654] Wiki Quick Hack: Text editor move lines up/down
Submitted by: Justin Dailey (dail)

Patch allows the current line (or selected lines) to be moved up and down with
Ctrl+Shift+Up and Ctrl+Shift+Down. Has undo/redo support and operators in python
menu.

7 years agoown mistake in recent commit CustomData_layertype_is_singleton()
Campbell Barton [Fri, 4 May 2012 13:28:02 +0000 (13:28 +0000)]
own mistake in recent commit CustomData_layertype_is_singleton()

was stopping bmesh python api adding multiple layers.

7 years agocode cleanup: use much simpler (and likely faster) polygon normal calculation in...
Campbell Barton [Fri, 4 May 2012 13:13:45 +0000 (13:13 +0000)]
code cleanup: use much simpler (and likely faster) polygon normal calculation in object mode.

7 years agoRemoved the automatic socket selection in the modal node linking operator.
Lukas Toenne [Fri, 4 May 2012 13:12:09 +0000 (13:12 +0000)]
Removed the automatic socket selection in the modal node linking operator.

This was originally reimplemented as part of the socket selection feature, but since selecting a socket necessarily also selected the owning node, it messes with the manual user selection of nodes too much (and doesn't add any additional usability).

7 years agoFix: forgot to commit these files as part of strand bugfix.
Brecht Van Lommel [Fri, 4 May 2012 12:46:51 +0000 (12:46 +0000)]
Fix: forgot to commit these files as part of strand bugfix.

7 years agoRenamed "fake" OpenGL identifiers.
Jason Wilkins [Fri, 4 May 2012 11:50:11 +0000 (11:50 +0000)]
Renamed "fake" OpenGL identifiers.

Any identifier that looks like an OpenGL identifier, but isn't, causes a false alarm by the glreport.py tool.  Most of these were in comments so I just rephrased the comments.  There were a couple of static functions/macros that were easy enough to rename.  Only the glTexco and glIndex fields of the DMVertexAttribs struct was public and had non-local uses.

7 years agoFix #31288: Blender crash when select a material
Sergey Sharybin [Fri, 4 May 2012 11:49:58 +0000 (11:49 +0000)]
Fix #31288: Blender crash when select a material

Quite the same issue as render crash on missed shader groups, needed a NULL-check
in node exec function as well.

7 years agoFix: issue in strand render + instancing bugfix, also optimized it a bit to avoid
Brecht Van Lommel [Fri, 4 May 2012 09:58:35 +0000 (09:58 +0000)]
Fix: issue in strand render + instancing bugfix, also optimized it a bit to avoid
unnecessary memory allocations.

7 years agoFix #31286: saving 16 bit BW tiff could crash due to invalid memory access. Also
Brecht Van Lommel [Fri, 4 May 2012 09:25:09 +0000 (09:25 +0000)]
Fix #31286: saving 16 bit BW tiff could crash due to invalid memory access. Also
found that 16 bit RGBA saving was not working, fixed as well.

7 years agoThrow an error and prevent compilation if there're unknown structures detected by DNA
Sergey Sharybin [Fri, 4 May 2012 08:18:47 +0000 (08:18 +0000)]
Throw an error and prevent compilation if there're unknown structures detected by DNA

7 years agoCycles: tweak ATI OpenGL/CUDA fix more with extra error check.
Brecht Van Lommel [Fri, 4 May 2012 08:00:58 +0000 (08:00 +0000)]
Cycles: tweak ATI OpenGL/CUDA fix more with extra error check.

7 years agoFix related to #31118: ensure tesselated faces are available when exporting
Brecht Van Lommel [Fri, 4 May 2012 08:00:55 +0000 (08:00 +0000)]
Fix related to #31118: ensure tesselated faces are available when exporting
to fluid sim. Is not actually the cause of the bug.

7 years agoThere is no GLenum called LIGHT_POSITION
Jason Wilkins [Fri, 4 May 2012 07:23:50 +0000 (07:23 +0000)]
There is no GLenum called LIGHT_POSITION

There is an FAQ that mentions a mythical GL_LIGHT_POSITION, and lots of programmers speak of it, but this mythical creature does not exist!

The correct symbol is GL_POSITION

7 years agoSmall hull bmop fix, distance check from plane needs absolute value.
Nicholas Bishop [Fri, 4 May 2012 03:25:46 +0000 (03:25 +0000)]
Small hull bmop fix, distance check from plane needs absolute value.

7 years agoStyle cleanup: spaces around operators
Sergey Sharybin [Thu, 3 May 2012 23:47:39 +0000 (23:47 +0000)]
Style cleanup: spaces around operators

7 years agoCamera tracking: show disabled active track even if Show Disabled is switched off
Sergey Sharybin [Thu, 3 May 2012 23:41:28 +0000 (23:41 +0000)]
Camera tracking: show disabled active track even if Show Disabled is switched off

7 years agoPossible fix for #31054: cycles viewport rendering not working with CUDA for
Brecht Van Lommel [Thu, 3 May 2012 23:39:42 +0000 (23:39 +0000)]
Possible fix for #31054: cycles viewport rendering not working with CUDA for
computation and ATI card for OpenGL.

7 years agoCamera tracking: switch dopesheet information to lazy calculation
Sergey Sharybin [Thu, 3 May 2012 23:15:01 +0000 (23:15 +0000)]
Camera tracking: switch dopesheet information to lazy calculation

All operators which changes tracking data now just tags dopsheet as outdated,
actual re-calculaiton of happens only when this information is actually needed
(like on dopesheet draw).

This makes things a bit faster when there's no dopesheet visible in current
screen and also makes it much easier to update dopesheet using dependency
graph.

Also renamed dopesheet_sort_order to dopesheet_sort_method in rna and internal
stuff which makes much more sense and also correlated with naming in
file browser.

7 years agocode cleanup: double promotion & some style cleanup
Campbell Barton [Thu, 3 May 2012 21:35:04 +0000 (21:35 +0000)]
code cleanup: double promotion & some style cleanup

7 years agoFix #31258: collada now selects newly added objects after import.
Brecht Van Lommel [Thu, 3 May 2012 21:32:49 +0000 (21:32 +0000)]
Fix #31258: collada now selects newly added objects after import.

7 years agocode cleanup:
Campbell Barton [Thu, 3 May 2012 21:19:31 +0000 (21:19 +0000)]
code cleanup:
- replace iterators with macros
- move vertexCos checks outside the for loops (use 2 for loops).
- style cleanup

7 years agofix for last commit, (warning was without openmp only)
Campbell Barton [Thu, 3 May 2012 20:26:05 +0000 (20:26 +0000)]
fix for last commit, (warning was without openmp only)

7 years agoFix strand render + instancing render bug, gave tile artifacts.
Brecht Van Lommel [Thu, 3 May 2012 20:06:25 +0000 (20:06 +0000)]
Fix strand render + instancing render bug, gave tile artifacts.

7 years agostyle cleanup: formatting and some float/double promotion
Campbell Barton [Thu, 3 May 2012 19:57:24 +0000 (19:57 +0000)]
style cleanup: formatting and some float/double promotion

7 years agocode cleanup: minor changes to get trunk compiling with strict warnings.
Campbell Barton [Thu, 3 May 2012 19:47:16 +0000 (19:47 +0000)]
code cleanup: minor changes to get trunk compiling with strict warnings.

7 years agoClip editor: sort order for dopesheet channels
Sergey Sharybin [Thu, 3 May 2012 19:28:41 +0000 (19:28 +0000)]
Clip editor: sort order for dopesheet channels

Supported sorting by name, longest tracked segment and total tracked frames.

Internally tracks are stored in Tracking datablock, but sort order is
a clip editor space property and sorting happens on clip editor draw.
If there's no dopesheet opened with different sort orders it's not
a problem due to re-sorting wouldn't happen.

Also fixed draw issue of tracked segments introduced in previous commit.

7 years agoCamera tracking: pre-calculate tracked segments for dopesheet channels
Sergey Sharybin [Thu, 3 May 2012 17:52:34 +0000 (17:52 +0000)]
Camera tracking: pre-calculate tracked segments for dopesheet channels

7 years agoCamera tracking: clear clipboard path before copying tracks to it.
Sergey Sharybin [Thu, 3 May 2012 17:02:33 +0000 (17:02 +0000)]
Camera tracking: clear clipboard path before copying tracks to it.

7 years agoCamera tracking: apparently one of tracking presets was never merged from tomato
Sergey Sharybin [Thu, 3 May 2012 17:00:08 +0000 (17:00 +0000)]
Camera tracking: apparently one of tracking presets was never merged from tomato

7 years agoFix #31234: vertex normals not update after knife cut.
Brecht Van Lommel [Thu, 3 May 2012 16:35:51 +0000 (16:35 +0000)]
Fix #31234: vertex normals not update after knife cut.

7 years agoFix #31275: mesh draw issues after adding hook to mesh in edit mode.
Brecht Van Lommel [Thu, 3 May 2012 16:24:27 +0000 (16:24 +0000)]
Fix #31275: mesh draw issues after adding hook to mesh in edit mode.

7 years agoFix #31273: videotexture ImageRender not working in blenderplayer.
Brecht Van Lommel [Thu, 3 May 2012 14:59:42 +0000 (14:59 +0000)]
Fix #31273: videotexture ImageRender not working in blenderplayer.

7 years agoFix #31259: particle grid distribution not working.
Brecht Van Lommel [Thu, 3 May 2012 13:56:15 +0000 (13:56 +0000)]
Fix #31259: particle grid distribution not working.

7 years agoFix #31272: Blender Crashes when press render
Sergey Sharybin [Thu, 3 May 2012 12:55:18 +0000 (12:55 +0000)]
Fix #31272: Blender Crashes when press render

Issue was caused by missed libraries. Seems compositor nodes already does check
in such cases, added the same check to texture and shader nodes.

7 years agoFix #31254: OpenGL-Rendering dark without Effect-Strip
Sergey Sharybin [Thu, 3 May 2012 11:54:12 +0000 (11:54 +0000)]
Fix #31254: OpenGL-Rendering dark without Effect-Strip

Issue was caused by the fact, that sequencer is working in sRGB space, but
when there's only image input strips we need to make sure conversion from
byte to float buffer would keep float buffer in sRGB space and wouldn't
make it linear as it's supposed to be in other areas.

7 years agoFix #31178, the cause is hidden and selected faces would return NULL as UVElements...
Antony Riakiotakis [Thu, 3 May 2012 10:56:35 +0000 (10:56 +0000)]
Fix #31178, the cause is hidden and selected faces would return NULL as UVElements. To avoid checking the whole contingency of UV synch selection + face selection + face hidden, added a NULL check.

7 years agoFix #31266: Track preview is shifted by half a pixel
Sergey Sharybin [Thu, 3 May 2012 10:40:04 +0000 (10:40 +0000)]
Fix #31266: Track preview is shifted by half a pixel

7 years agoFix #31139: fractal mesh subdivide was only working along normal where previously
Brecht Van Lommel [Thu, 3 May 2012 10:14:08 +0000 (10:14 +0000)]
Fix #31139: fractal mesh subdivide was only working along normal where previously
it would displace in all directions. Now there's an operator option to control this.

7 years agoFix #31257: tiff reader not reading 16 bit grayscale images correctly.
Brecht Van Lommel [Thu, 3 May 2012 09:51:12 +0000 (09:51 +0000)]
Fix #31257: tiff reader not reading 16 bit grayscale images correctly.

7 years agoFix #31108: entering local view with glsl shows objects black. Now keeps lamps
Brecht Van Lommel [Thu, 3 May 2012 09:31:59 +0000 (09:31 +0000)]
Fix #31108: entering local view with glsl shows objects black. Now keeps lamps
affecting the material even if they are not part of the local view.

7 years agoEnum property items were missing a terminator item.
Lukas Toenne [Thu, 3 May 2012 06:57:30 +0000 (06:57 +0000)]
Enum property items were missing a terminator item.

7 years agoGrr! Fix for own error in r46193.
Bastien Montagne [Thu, 3 May 2012 05:39:30 +0000 (05:39 +0000)]
Grr! Fix for own error in r46193.

7 years agoPatch [#30965] Cancel Sculpt Stroke w/ ESCAPE
Jason Wilkins [Thu, 3 May 2012 04:11:53 +0000 (04:11 +0000)]
Patch [#30965] Cancel Sculpt Stroke w/ ESCAPE

If the RMB has not been released after starting a sculpt stroke, then hitting escape will cancel the stroke in progress and undo any changes to the mesh.

This is a slightly faster work-flow than using undo, is a feature available in other paint programs, and also puts in place the infrastructure to add other keys later that could tweak strokes in different ways.

7 years agoPatch [#30255] Center Last Stroke
Jason Wilkins [Thu, 3 May 2012 03:51:30 +0000 (03:51 +0000)]
Patch [#30255] Center Last Stroke

Enables the NUMPERIOD view centering operator to work in sculpt mode.  Hitting NUMPERIOD while in sculpt mode will center the view on the end of the last sculpting stroke made by the user.

This is useful for quickly refocusing on the current work area without fussing with the view controls.

It does not zoom into the stroke (slide only).

It does nothing if there have been no strokes.

7 years agoED_object_exit_editmode needs ED_object.h
Jason Wilkins [Thu, 3 May 2012 01:07:16 +0000 (01:07 +0000)]
ED_object_exit_editmode needs ED_object.h

7 years agoFix #31256: collada export while in edit mode does not export edit mode changes,
Brecht Van Lommel [Wed, 2 May 2012 23:48:16 +0000 (23:48 +0000)]
Fix #31256: collada export while in edit mode does not export edit mode changes,
now uses same call as render to flush mesh without leaving edit mode.

7 years agoFix #31250, #31248: wrong vertex normals after transform apply, collada import,
Brecht Van Lommel [Wed, 2 May 2012 23:36:34 +0000 (23:36 +0000)]
Fix #31250, #31248: wrong vertex normals after transform apply, collada import,
sculpt shape key switch. All cases that called this function needed parameter
only_face_normals set to false, so changed it now.

Also fixed wrong user count for imported mesh from collada and simplified
previous fix for tesselated faces to polygons conversion.

7 years agoFix #31253: collada export default file name now is no longer always
Brecht Van Lommel [Wed, 2 May 2012 23:36:31 +0000 (23:36 +0000)]
Fix #31253: collada export default file name now is no longer always
untitled.dae, but rather uses .blend file name like other exporters.

Patch by Gaia Clary.

7 years agoInitialize an input in bmo_hull.
Nicholas Bishop [Wed, 2 May 2012 23:29:52 +0000 (23:29 +0000)]
Initialize an input in bmo_hull.

7 years agoFix #31247: cycles crash after recent bugfix.
Brecht Van Lommel [Wed, 2 May 2012 18:14:59 +0000 (18:14 +0000)]
Fix #31247: cycles crash after recent bugfix.

7 years agoFix #31089: collada file crashing on importing file with unknown/unsupported animatio...
Brecht Van Lommel [Wed, 2 May 2012 18:11:09 +0000 (18:11 +0000)]
Fix #31089: collada file crashing on importing file with unknown/unsupported animation data.

7 years agoStyle cleanup: spaces around operators
Sergey Sharybin [Wed, 2 May 2012 17:37:39 +0000 (17:37 +0000)]
Style cleanup: spaces around operators

7 years agoClip editor: cleanup of View menu - do not show operators which doesn't make sense...
Sergey Sharybin [Wed, 2 May 2012 17:33:48 +0000 (17:33 +0000)]
Clip editor: cleanup of View menu - do not show operators which doesn't make sense in dopesheet/curve view

7 years agoCycles: add Ray Length output to Light Path node. This gives the distance travelled
Brecht Van Lommel [Wed, 2 May 2012 17:03:46 +0000 (17:03 +0000)]
Cycles: add Ray Length output to Light Path node. This gives the distance travelled
by the last light ray. One use case for this might be to do absorption.

Patch #31232 by Agustin benavidez, see this blog post for details:
http://agus3d.blogspot.com.ar/2012/05/blender-cycles-ray-length-node-output.html

7 years agoClip editor: remove Z-key shortcut for curve view. It doesn't make many sense anymore.
Sergey Sharybin [Wed, 2 May 2012 17:01:48 +0000 (17:01 +0000)]
Clip editor: remove Z-key shortcut for curve view. It doesn't make many sense anymore.

7 years agoClip editor: added drag-n-drop support so files can be opened in clip editor
Sergey Sharybin [Wed, 2 May 2012 16:42:42 +0000 (16:42 +0000)]
Clip editor: added drag-n-drop support so files can be opened in clip editor
by drag-n-dropping them from an external application.

7 years agoFix #31176: Collada model shows weird textures in editmode
Juha Mäki-Kanto [Wed, 2 May 2012 16:18:20 +0000 (16:18 +0000)]
Fix #31176: Collada model shows weird textures in editmode

Issue with multimaterial meshes and mface to mpoly conversion being before assignment of materials (which is done on meshobject instancing?).
Added explicit bmesh conversion to MeshImporter which is called from DocumentImporter::import.

7 years agoFix #31190: mirror modifier caused non-planar quads to be split differently on
Brecht Van Lommel [Wed, 2 May 2012 16:17:04 +0000 (16:17 +0000)]
Fix #31190: mirror modifier caused non-planar quads to be split differently on
the other side, now keep the first vertex of the polygon the same to avoid this.

7 years agoFix wrong unified weight paint value version patch, was doing incorrect version check.
Brecht Van Lommel [Wed, 2 May 2012 16:05:25 +0000 (16:05 +0000)]
Fix wrong unified weight paint value version patch, was doing incorrect version check.
Fix #31209: weight paint sample & fill not using correct brush/unified value.

7 years agoFix #31236: linking a socket of a different type to an existing node group output
Brecht Van Lommel [Wed, 2 May 2012 15:47:15 +0000 (15:47 +0000)]
Fix #31236: linking a socket of a different type to an existing node group output
would crash, did not convert default value storage correctly.

7 years agoSmall enhancement to Fast Gaussian compo blur node: do not compute when size is below...
Bastien Montagne [Wed, 2 May 2012 14:29:12 +0000 (14:29 +0000)]
Small enhancement to Fast Gaussian compo blur node: do not compute when size is below 0.001!

(Was already checked/done for other blur algos, can be annoying when you animate the blur size to apply it only on a few frames.)

7 years agoFix: --debug-python command option was not working correct.
Brecht Van Lommel [Wed, 2 May 2012 14:23:00 +0000 (14:23 +0000)]
Fix: --debug-python command option was not working correct.

7 years agoFixes for recent cycles and python/context commits.
Brecht Van Lommel [Wed, 2 May 2012 14:22:22 +0000 (14:22 +0000)]
Fixes for recent cycles and python/context commits.

7 years agoCMake: Fix to install numpy (source dir was "hardcoded", rather use PYTHON_NUMPY_PATH...
Bastien Montagne [Wed, 2 May 2012 14:16:35 +0000 (14:16 +0000)]
CMake: Fix to install numpy (source dir was "hardcoded", rather use PYTHON_NUMPY_PATH), was failing under Debian testing.

Note that there is still a problem, destination ("site-packages") is not in blender's python path, so you have to edit sys.path before being able to import numpy... but at least it installs again.

7 years agoPython/context: tweak code further so that when you set screen/area/region
Brecht Van Lommel [Wed, 2 May 2012 13:48:14 +0000 (13:48 +0000)]
Python/context: tweak code further so that when you set screen/area/region
from python, it actually gets data context from there as well.

7 years agoPython: documentation about overriding context members.
Brecht Van Lommel [Wed, 2 May 2012 13:28:13 +0000 (13:28 +0000)]
Python: documentation about overriding context members.

7 years agoFix crash setting area.type from a context that not include the right window,
Brecht Van Lommel [Wed, 2 May 2012 13:09:26 +0000 (13:09 +0000)]
Fix crash setting area.type from a context that not include the right window,
ideally this function should become context free, for now just trick it to
execute in the right context.

7 years agoPython/context: allow overriding window/screen/area/region context for running operators
Brecht Van Lommel [Wed, 2 May 2012 12:14:27 +0000 (12:14 +0000)]
Python/context: allow overriding window/screen/area/region context for running operators
from python, this is useful to run an operator in a particular place in the UI.

7 years agobmesh: use fixed stack size for face flipping array.
Campbell Barton [Wed, 2 May 2012 11:10:54 +0000 (11:10 +0000)]
bmesh: use fixed stack size for face flipping array.

also quiet unused var warnings

7 years agoFix #31199 & #31112: cycles not working well with vertex/weight paint selection
Brecht Van Lommel [Wed, 2 May 2012 10:52:29 +0000 (10:52 +0000)]
Fix #31199 & #31112: cycles not working well with vertex/weight paint selection
mask drawing.

Now refactored the code a bit so that in no longer calls textured mesh drawing
for the face mask drawing, just handle it as part of regular paint color drawing.
Should also make the blender internal behavior more logical where it would start
showing textures in solid mode when enabling face masking.

7 years agoFix 31220: glsl sun lamp shadows did not apparently respect shadow flag when
Brecht Van Lommel [Wed, 2 May 2012 10:10:05 +0000 (10:10 +0000)]
Fix 31220: glsl sun lamp shadows did not apparently respect shadow flag when
working in blender render rather than blender game mode. Tweaked the flags a
bit to make it compatible more, but for full configuration you need to be in
blender game mode still.

7 years agoFix #31102: changing scene.use_color_management from render_pre callback would crash.
Brecht Van Lommel [Wed, 2 May 2012 09:50:48 +0000 (09:50 +0000)]
Fix #31102: changing scene.use_color_management from render_pre callback would crash.

7 years agoFix #31168: cycles mask layer should only affect objects for camera rays.
Brecht Van Lommel [Wed, 2 May 2012 09:33:45 +0000 (09:33 +0000)]
Fix #31168: cycles mask layer should only affect objects for camera rays.
Fix: texture coordinate normal output was not correct, still changed under
object transform.

7 years agoFix #31230: Grid primitive changes size with changing resolution
Sergey Sharybin [Wed, 2 May 2012 09:03:15 +0000 (09:03 +0000)]
Fix #31230: Grid primitive changes size with changing resolution

7 years agoFix: recent commit setting python3.2 command should not be applied to this file
Brecht Van Lommel [Wed, 2 May 2012 09:03:04 +0000 (09:03 +0000)]
Fix: recent commit setting python3.2 command should not be applied to this file
scons build scripts are still using python2.

7 years agoA number of changes to node RNA and the file output node, to simplify socket types...
Lukas Toenne [Wed, 2 May 2012 07:18:51 +0000 (07:18 +0000)]
A number of changes to node RNA and the file output node, to simplify socket types and make node code more robust for future nodes with extra socket data.

* Removed the struct_type identifier from sockets completely. Any specialization of socket types can be done by using separate collections in RNA and customized socket draw callbacks in node type. Sockets themselves are pure data inputs/outputs now. Possibly the sock->storage data could also be removed, but this will change anyway with id properties in custom nodes.

* Replaced the direct socket button draw calls by extra callbacks in node types. This allows nodes to draw sockets in specialized ways without referring to the additional struct_type identifier. Default is simply drawing the socket default_value button, only file output node overrides this atm.

* File output node slots now use a separate file sub-path in their storage data, instead of using the socket name. That way the path is an actual PROP_FILEPATH property and it works better with the UI list template (name property is local to the data struct).

* Node draw contexts for options on the node itself and detail buttons in the sidebar now have an extra context pointer "node" (uiLayoutSetContextPointer). This can be used to bind operator buttons to a specific node, instead of having to rely on the active/selected node(s) or making weak links via node name. Compare to modifiers and logic bricks, they use the same feature.

* Added another operator for reordering custom input slots in the file output node.

7 years agocmake - improved detection of numpy, now works for typical ubuntu installation.
Campbell Barton [Tue, 1 May 2012 23:22:58 +0000 (23:22 +0000)]
cmake - improved detection of numpy, now works for typical ubuntu installation.

numpy directory can be referenced manually with the advanced option PYTHON_NUMPY_PATH if needed.

7 years agoFixes opening video files on Windows. [#30752]
Alexander Kuznetsov [Tue, 1 May 2012 21:46:55 +0000 (21:46 +0000)]
Fixes opening video files on Windows. [#30752]

Thanks Lockal for finding faulty stat function which helped a lot.
Now there BLI_stat. I will replace all other stat later.

*** Please use BLI_xxxx() functions ***
for file operations

Reported by Leon Cheung, Lockal, Believil

7 years agoFix for r46170.
Thomas Dinges [Tue, 1 May 2012 21:39:52 +0000 (21:39 +0000)]
Fix for r46170.
* "but=but->next"  was there twice, once in the loop block and once at the end, caused Blender to crash on startup.

Please always compile and check it works before committing. :)

7 years agoLogic brick connection highlighting on mouseover. Merged from candy branch. I hope...
Matthew Smith [Tue, 1 May 2012 21:02:04 +0000 (21:02 +0000)]
Logic brick connection highlighting on mouseover. Merged from candy branch. I hope it works - my first commit to trunk ^_^

7 years agoAdd pthread dll for MinGW64 during installation. Now people who download from buildbo...
Antony Riakiotakis [Tue, 1 May 2012 20:57:39 +0000 (20:57 +0000)]
Add pthread dll for MinGW64 during installation. Now people who download from buildbot will be able to run the build even without MinGW-w64 installed.

7 years agoreplace python3 command with python3.2, python3 isnt available on ubuntu.
Campbell Barton [Tue, 1 May 2012 20:45:16 +0000 (20:45 +0000)]
replace python3 command with python3.2, python3 isnt available on ubuntu.

7 years agopatch [#31216] OpenGL urls updated by Julien DUROURE (julien)
Dalai Felinto [Tue, 1 May 2012 20:45:03 +0000 (20:45 +0000)]
patch [#31216] OpenGL urls updated by Julien DUROURE (julien)
update for the apidocs for the BGL module

7 years agosource code style checker to, (similar to pythons pep8 checker)
Campbell Barton [Tue, 1 May 2012 20:36:39 +0000 (20:36 +0000)]
source code style checker to, (similar to pythons pep8 checker)
currently checks for brace placement and some whitespace use.

can be accessed with:
  make test_style
or...
  source/tools/check_style_c.py  source/blender

also style cleanup on bmo_primitives.c

7 years agostyle cleanup: whitespace, braces
Campbell Barton [Tue, 1 May 2012 20:08:23 +0000 (20:08 +0000)]
style cleanup: whitespace, braces

7 years agocode cleanup: tag unused vars
Campbell Barton [Tue, 1 May 2012 18:57:32 +0000 (18:57 +0000)]
code cleanup: tag unused vars

7 years agostyle cleanup: guys - set your editors to tabs!
Campbell Barton [Tue, 1 May 2012 17:51:03 +0000 (17:51 +0000)]
style cleanup: guys - set your editors to tabs!

7 years agoRelated to #31213: rename Delete > Edges & Faces to Only Edges & Faces, to try
Brecht Van Lommel [Tue, 1 May 2012 17:44:00 +0000 (17:44 +0000)]
Related to #31213: rename Delete > Edges & Faces to Only Edges & Faces, to try
to make it more clear that this keeps vertices.

7 years agoFix #31202: cycles crash in new BVH builder on Windows, when compiling with
Brecht Van Lommel [Tue, 1 May 2012 17:17:17 +0000 (17:17 +0000)]
Fix #31202: cycles crash in new BVH builder on Windows, when compiling with
debug info.

7 years agoMotion Paths GUI Cleanup
Joshua Leung [Tue, 1 May 2012 16:19:13 +0000 (16:19 +0000)]
Motion Paths GUI Cleanup

This commit refactors the way that the Motion Paths GUI works. The key problems
this tries to address are:
1) Mode error - Confusion about whether we're dealing with the Object or Pose
level Motion Paths panel
2) Display settings vs Baking Settings

In line with the original design intentions for the 2.5/6 Properties Editor,
I've now split out the actual baking-related settings away from the Properties
Editor:
* Now, when clicking "Calculate Paths" from the toolbar, you'll be prompted with
a dialog to select the start/end frames (and for bones, whether to bake from
heads or tails). This is less confusing than relying on firstly setting the
range via the display range settings (and baking using that), since many people
apparently only used the "around current" mode, and were confused why things
weren't working

* Added a display of the frame ranges of the current baked Motion Path on the
active Object/Bone. This makes it clearer/easier to debug if the path suddenly
starts disappearing after a certain frame.

* Replaced Calculate/Clear Paths in the panels with a single "Update" button if
there's already a baked Motion Path.

Hopefully these changes (in combination with some of the other bugfixes) will
make it more obvious how everything works.

7 years agoFix #31162: Applying textures to rigged models causes crash and no textures in appear...
Sergey Sharybin [Tue, 1 May 2012 15:59:28 +0000 (15:59 +0000)]
Fix #31162: Applying textures to rigged models causes crash and no textures in appear in edit mode

Issue was caused by doing stuff like binding textures from glBegin/glEnd block.

7 years agoFix #31110: selected to active baking did not properly check to see if the
Brecht Van Lommel [Tue, 1 May 2012 15:21:29 +0000 (15:21 +0000)]
Fix #31110: selected to active baking did not properly check to see if the
object was actually selected, so e.g. baking shadows cast from non-selected
objects did not work.

7 years agoFix own error in BM_mesh_remap(), forgot to remap edge pointers in disk_links of...
Bastien Montagne [Tue, 1 May 2012 14:13:14 +0000 (14:13 +0000)]
Fix own error in BM_mesh_remap(), forgot to remap edge pointers in disk_links of edges, so wasn’t working at all with edges remapping!

7 years agoComment fixes - code for Object Motion Paths still referred to Bones
Joshua Leung [Tue, 1 May 2012 13:51:50 +0000 (13:51 +0000)]
Comment fixes - code for Object Motion Paths still referred to Bones

7 years agostule cleanup: pep8
Campbell Barton [Tue, 1 May 2012 13:32:55 +0000 (13:32 +0000)]
stule cleanup: pep8

7 years agoBugfix [#30097] Motion paths range not correct - Part B (Recalculating existing
Joshua Leung [Tue, 1 May 2012 13:10:36 +0000 (13:10 +0000)]
Bugfix [#30097] Motion paths range not correct - Part B (Recalculating existing
paths with new ranges)

If an object/bone already had a motion path, it was not possible to recalculate
it over a different frame range without firstly clearing these paths. This was
both a confusing and troublesome workflow, and has since been removed.

7 years agoStyle cleanup: spaces around operator
Sergey Sharybin [Tue, 1 May 2012 12:51:17 +0000 (12:51 +0000)]
Style cleanup: spaces around operator

7 years agoFix a potential memory leak in recent vertex xsort/randomize code.
Bastien Montagne [Tue, 1 May 2012 12:38:26 +0000 (12:38 +0000)]
Fix a potential memory leak in recent vertex xsort/randomize code.

7 years agoFox #31185: Cannot sculpt shape keys
Sergey Sharybin [Tue, 1 May 2012 12:14:44 +0000 (12:14 +0000)]
Fox #31185: Cannot sculpt shape keys

Was related on sculpting on locked keys. Issue was caused by building
PBVH from base mesh which is now doesn't have shape key loaded into
it as it was in 2.62.

Fixed by loading coordinates from deformed mesh into PBVH like it
happens for on-locked shape keys.