8 years agocode cleanup: cmake - add missing headers, remove directories from source listing.
Campbell Barton [Sat, 3 Nov 2012 15:49:38 +0000 (15:49 +0000)]
code cleanup: cmake - add missing headers, remove directories from source listing.

also remove logImageLib.c - empty file.

8 years agoCycles: use mikktspace now for computing tangents from UV maps. This avoids ugly
Brecht Van Lommel [Sat, 3 Nov 2012 15:36:02 +0000 (15:36 +0000)]
Cycles: use mikktspace now for computing tangents from UV maps. This avoids ugly
averaged tangents at UV seams but instead now the seams will show as discontinuities
in the tangent.

8 years agoRNA C++: collections functions are now properly handled, meaning it is now
Brecht Van Lommel [Sat, 3 Nov 2012 15:35:43 +0000 (15:35 +0000)]
RNA C++: collections functions are now properly handled, meaning it is now
possible to call BlendData.meshes.remove() directly.

It requires special order of classes in header file (namely classes used for
collection functions should be declared before collection properties with this
classes are declared). Currently used naive linear search for this, could be
replaced with hash or bisect, but for now performance here is not an issue.

Patch by Sergey, but committing now because it's needed for next commit.

8 years agostyle cleanup: tabs & whitespace
Campbell Barton [Sat, 3 Nov 2012 15:35:03 +0000 (15:35 +0000)]
style cleanup: tabs & whitespace

8 years agouse library argument for bpy.path.abspath in case of linked nodes.
Campbell Barton [Sat, 3 Nov 2012 15:05:09 +0000 (15:05 +0000)]
use library argument for bpy.path.abspath in case of linked nodes.

8 years agoCycles OSL: shader script node
Brecht Van Lommel [Sat, 3 Nov 2012 14:32:35 +0000 (14:32 +0000)]
Cycles OSL: shader script node

Documentation here:

These changes require an OSL build from this repository:

The lib/ OSL has not been updated yet, so you might want to keep OSL disabled
until that is done.

Still todo:
* Auto update for external .osl files not working currently, press update manually
* Node could indicate better when a refresh is needed
* Attributes like UV or generated coordinates may be missing when requested from
  an OSL shader, need a way to request them to be loaded by cycles
* Expose string, enum and other non-socket parameters
* Scons build support

Thanks to Thomas, Lukas and Dalai for the implementation.

8 years agoRender API: shader script node for custom shaders.
Brecht Van Lommel [Sat, 3 Nov 2012 14:32:26 +0000 (14:32 +0000)]
Render API: shader script node for custom shaders.

* Shader script node added, which stores either a link to a text datablock or
  file on disk, and has functions to add and remove sockets.
* Callback RenderEngine.update_script_node(self, node) added for render engines
  to compile the shader and update the node with new sockets.

Thanks to Thomas, Lukas and Dalai for the implementation.

8 years agoCycles OSL: refactoring and fixes
Brecht Van Lommel [Sat, 3 Nov 2012 14:32:13 +0000 (14:32 +0000)]
Cycles OSL: refactoring and fixes

* Moved kernel/osl/nodes to kernel/shaders
* Renamed standard attributes to use geom:, particle:, object: prefixes
* Update stdosl.h to properly reflect the closures we support
* Fix the wrong stdosl.h being used for building shaders
* Add geom:numpolyvertices, geom:trianglevertices, geom:polyvertices attributes

8 years agoRNA/C++: string property writing was missing.
Brecht Van Lommel [Sat, 3 Nov 2012 14:31:55 +0000 (14:31 +0000)]
RNA/C++: string property writing was missing.

8 years agoBPY/RNA: determine callback functions that are allowed to write data by a flag
Brecht Van Lommel [Sat, 3 Nov 2012 14:31:38 +0000 (14:31 +0000)]
BPY/RNA: determine callback functions that are allowed to write data by a flag
on the function instead of checking the name.

8 years agoBugfix (own collection)
Ton Roosendaal [Sat, 3 Nov 2012 14:31:28 +0000 (14:31 +0000)]
Bugfix (own collection)

Adding new image texture to Meshes didn't initialize UVs to 0-1 default.
This makes initial display of textures on meshes not work.

This fixes my favorite demo case: Open Blender, drop image from desktop on cube.

8 years agoPreparation to use boost::shared_ptr.
Joerg Mueller [Sat, 3 Nov 2012 09:49:49 +0000 (09:49 +0000)]
Preparation to use boost::shared_ptr.

8 years agoremove unneeded string in datatoc.c and correct some of the context types in our...
Campbell Barton [Sat, 3 Nov 2012 09:14:06 +0000 (09:14 +0000)]
remove unneeded string in datatoc.c and correct some of the context types in our documentation.

8 years agoauto-generated py api now shows bpy.context.* items in the 'References' section of...
Campbell Barton [Sat, 3 Nov 2012 07:28:51 +0000 (07:28 +0000)]
auto-generated py api now shows bpy.context.* items in the 'References' section of each type.

8 years agoOSX: take back 51826 for now, does not fix dalai's problem
Jens Verwiebe [Fri, 2 Nov 2012 20:55:12 +0000 (20:55 +0000)]
OSX: take back 51826 for now, does not fix dalai's problem

8 years agoOSX: a more friendly way to get mounted volumes, alo allows for whitespaces etc.
Jens Verwiebe [Fri, 2 Nov 2012 20:26:37 +0000 (20:26 +0000)]
OSX: a more friendly way to get mounted volumes, alo allows for whitespaces etc.

8 years agoFix for [#32992] Switching language does nothing under Windows.
Bastien Montagne [Fri, 2 Nov 2012 20:03:15 +0000 (20:03 +0000)]
Fix for [#32992] Switching language does nothing under Windows.

Our current intl build for windows is quite old (don't know the exact version), and does not have the new setlocale overwrite. Problem is, new windows dll have no more the gettext_putenv helper, which is currently mandatory to make it work for this OS.

So back for now to the ugly long_locales for win. Best fix is probably to build our own static version of libl, but this is not trivial and will require some time. :/

PS: I had a look over i18n/translation in wxWidget, Qt and boost: all implement their own system, even though wxWidget and boost use po/mo files...

8 years agoFix #33040: baking selected to active could miss at pixels at the edge of faces
Brecht Van Lommel [Fri, 2 Nov 2012 13:36:26 +0000 (13:36 +0000)]
Fix #33040: baking selected to active could miss at pixels at the edge of faces
when there was a tiny mismatch between low and high poly models, maybe because
of float precision when editing the mesh. Added a small epsilon now to avoid this.

8 years agoRNA C++: fixes for lookup_int/lookup_string which were not working in some cases,
Brecht Van Lommel [Fri, 2 Nov 2012 13:36:20 +0000 (13:36 +0000)]
RNA C++: fixes for lookup_int/lookup_string which were not working in some cases,
and don't use ReportList for function arguments.

8 years agoUV editor: change unwrap warning about object non-unit size to only warning about
Brecht Van Lommel [Fri, 2 Nov 2012 13:36:10 +0000 (13:36 +0000)]
UV editor: change unwrap warning about object non-unit size to only warning about
non-uniform scale, otherwise it gives warnings for cases when it's not needed.

8 years agofix for own recent commit checking bounds off-by-one.
Campbell Barton [Fri, 2 Nov 2012 12:47:32 +0000 (12:47 +0000)]
fix for own recent commit checking bounds off-by-one.

8 years agofix for compositor regression where blur note offset the image one pixel to the top...
Campbell Barton [Fri, 2 Nov 2012 12:44:09 +0000 (12:44 +0000)]
fix for compositor regression where blur note offset the image one pixel to the top right.

8 years agocorrect operator preset tooltip and dont save their settings for re-use
Campbell Barton [Fri, 2 Nov 2012 12:09:59 +0000 (12:09 +0000)]
correct operator preset tooltip and dont save their settings for re-use

8 years agoown recent commit to add pointer passing between py-rna and our C code, broke functio...
Campbell Barton [Fri, 2 Nov 2012 10:37:33 +0000 (10:37 +0000)]
own recent commit to add pointer passing between py-rna and our C code, broke function calls for C++ rna api.

reported as [#33048] Cycles crashes when rendering

8 years agoOSX: suppress meaningless /net and /home in fileselector also on 10.5+
Jens Verwiebe [Fri, 2 Nov 2012 10:33:54 +0000 (10:33 +0000)]
OSX: suppress meaningless  /net and /home in fileselector also on 10.5+

8 years agoall remove functions now invalidate the RNA objects passed, to help script authors...
Campbell Barton [Fri, 2 Nov 2012 09:41:26 +0000 (09:41 +0000)]
all remove functions now invalidate the RNA objects passed, to help script authors to avoid bugs with accessing removed data.

8 years agoBugfix #24030
Ton Roosendaal [Thu, 1 Nov 2012 17:52:21 +0000 (17:52 +0000)]
Bugfix #24030

Greasepencil mode 'hold d' was also inserting drivers (hotkey D) on mouse over.
The modal operator was default passing on all events, I made it swallowing it.
Doesn't seem to be affecting use at all.

8 years agoall library data now gets the PointerRNA's invalidated on removal.
Campbell Barton [Thu, 1 Nov 2012 17:16:24 +0000 (17:16 +0000)]
all library data now gets the PointerRNA's invalidated on removal.

8 years agoFix for Hue/Sat/Val compositor node. This was using the wrong input socket for the...
Lukas Toenne [Thu, 1 Nov 2012 17:05:01 +0000 (17:05 +0000)]
Fix for Hue/Sat/Val compositor node. This was using the wrong input socket for the color constant (Fac instead Image).

8 years agofix for release building
Campbell Barton [Thu, 1 Nov 2012 17:02:01 +0000 (17:02 +0000)]
fix for release building

8 years agoBugfix [#33036] Invalid memory read in wm_handlers_do (valgrind warning)
Ton Roosendaal [Thu, 1 Nov 2012 16:15:00 +0000 (16:15 +0000)]
Bugfix [#33036] Invalid memory read in wm_handlers_do (valgrind warning)

8 years agofix for long standing problem with blender 2.5x py api.
Campbell Barton [Thu, 1 Nov 2012 15:56:42 +0000 (15:56 +0000)]
fix for long standing problem with blender 2.5x py api.
Removing data then accessing would allow invalid memory access and often crash.

  import bpy
  image ="a", width=5, height=5)

Now access to the removed data raises an error:
  ReferenceError: StructRNA of type Image has been removed

This is the same level of error checking that was done in blender 2.4x but was made difficult by RNA functions not having access to the PyObject's.

8 years agoBugfix #33038
Ton Roosendaal [Thu, 1 Nov 2012 15:51:24 +0000 (15:51 +0000)]
Bugfix #33038

TIMER events could get keymodifier set - in this case the user assigned
spacebar modifier for setting views (running smoothview timer)

Also: cleaned op old hacks from event checking code.
The rule should be:

1) generate event properly, frozen state
2) pass on to handlers without exceptions or changing internal state

The only exception currently is for the "CLICK" (map key-release to unhandled

Also: made --debug-event print OK. Slight cleanup in eventprinting in general.
It was putting the wmEvent state print in wrong place, doing it 4 or 8 times.

8 years agoremove BLI_utildefines from BKE_DerivedMesh.h header
Campbell Barton [Thu, 1 Nov 2012 15:34:38 +0000 (15:34 +0000)]
remove BLI_utildefines from BKE_DerivedMesh.h header

8 years agoBugreport - Christian Krupa in irc:
Ton Roosendaal [Thu, 1 Nov 2012 13:00:24 +0000 (13:00 +0000)]
Bugreport - Christian Krupa in irc:

Curves behaved totally bad suddenly. Caused by Campbell code cleanup, replacing

/* this is for float inaccuracy */
if (t < knots[0])
t = knots[0];
else if (t > knots[opp2])
t = knots[opp2];


t = (t < knots[0]) ? knots[0] : knots[opp2];


8 years agofix for possible buffer overflow in gpu_nodes_get_vertex_attributes() and hair_veloci...
Campbell Barton [Thu, 1 Nov 2012 09:56:18 +0000 (09:56 +0000)]
fix for possible buffer overflow in gpu_nodes_get_vertex_attributes() and hair_velocity_smoothing()
and a unlikely NULL pointer dereference in unlink_material_cb().

8 years agostyle cleanup
Campbell Barton [Thu, 1 Nov 2012 09:54:00 +0000 (09:54 +0000)]
style cleanup

8 years agofix for own error - vertex custom-data flag wasnt working with the decimator
Campbell Barton [Thu, 1 Nov 2012 06:38:25 +0000 (06:38 +0000)]
fix for own error - vertex custom-data flag wasnt working with the decimator

8 years agominor edits to mesh operators
Campbell Barton [Thu, 1 Nov 2012 05:07:15 +0000 (05:07 +0000)]
minor edits to mesh operators

- Rename 'mesh.select_nth' operator menu item 'Every N Number of Verts' to 'Checker Deselect',
  since its not just de-selecting verts (works on edges and faces too) and the term 'checker' gives a better description of the result.

- Rename 'mesh.select_by_number_vertices' to 'mesh.select_face_by_sides', since this is a face selection tool, which wasnt obvious from its name.

also remove dissolve by type menu since the option has been removed from the operator and was giving an error.

8 years agofix for crash in own recent commit to add comparison options for select-similar,...
Campbell Barton [Thu, 1 Nov 2012 04:27:59 +0000 (04:27 +0000)]
fix for crash in own recent commit to add comparison options for select-similar, missing NULL terminator item in the array.

8 years agoBGE: Fix for bug #33025 "Character physics object won't stop moving with simple motio...
Mitchell Stokes [Thu, 1 Nov 2012 03:11:39 +0000 (03:11 +0000)]
BGE: Fix for bug #33025 "Character physics object won't stop moving with simple motion actuator" reported by Jared Smith (jsmithketchup). Characters no longer use a simple translation change for ApplyMovement(), they instead delegate to the character controller's setWalkDirection(). The motion actuator now sets this to (0, 0, 0) on a negative pulse.

8 years agofix [#30910] Problems: Add Shortcut(s) for "Ctrl Tab" menu
Campbell Barton [Wed, 31 Oct 2012 20:29:32 +0000 (20:29 +0000)]
fix [#30910] Problems: Add Shortcut(s) for "Ctrl Tab" menu

comparing keymaps was too sloppy or too strict, now sloppy keymap comparison works by setting all the operator
properties to their default values if they are not already set, then compare this with the keymap item (ignoring values missing from either one).

... this way any non default keymap setting wont match with an operator menu item which doesnt set this operator at all (a problem sighted in this bug report).

developer notes:
- IDP_EqualsProperties_ex() function adds an argument to treat missing members of either group to act as if there is a match.
- WM_operator_properties_default() function to reset RNA values to their defaults.
- add IDP_spit(), debug only function to print out ID properties.

8 years agocode style: use switch for IDP_EqualsProperties()
Campbell Barton [Wed, 31 Oct 2012 19:42:02 +0000 (19:42 +0000)]
code style: use switch for IDP_EqualsProperties()

8 years agoadd IDP_MergeGroup(dst, src, overwrite) function,
Campbell Barton [Wed, 31 Oct 2012 19:07:25 +0000 (19:07 +0000)]
add IDP_MergeGroup(dst, src, overwrite)  function,
like PyDict_Merge()

8 years agoBugfix #33031
Ton Roosendaal [Wed, 31 Oct 2012 18:47:49 +0000 (18:47 +0000)]
Bugfix #33031

Holding down non-modifer keys was generating double-clicks - my fault!

8 years agoFix blender internal strand render issue with deep shadow buffers, and AA samples
Brecht Van Lommel [Wed, 31 Oct 2012 17:32:18 +0000 (17:32 +0000)]
Fix blender internal strand render issue with deep shadow buffers, and AA samples
smaller than the number of shadow sample buffers. There was not enough shadow in
such cases, as some of the sample buffers were not filled in.

8 years agoBugfix #33032
Ton Roosendaal [Wed, 31 Oct 2012 17:28:21 +0000 (17:28 +0000)]
Bugfix #33032

(since 2010)

- Using 2-button mouse emulation (common for tablets)
- Press LMB, start painting, press ALT, release LMB
- This kept painting to run, since the release event was a MMB,
  not handled by paint code.

8 years agono longer use 'check_existing' to see if we need to have a save popup, instead use...
Campbell Barton [Wed, 31 Oct 2012 17:03:31 +0000 (17:03 +0000)]
no longer use 'check_existing' to see if we need to have a save popup, instead use 'exec' operator on a saved file and
invoke on unsaved files.

correct missing memset --> CustomData_reset switch too.

8 years agofix for asserts caused by own recent commits to use customdata typemap.
Campbell Barton [Wed, 31 Oct 2012 15:17:35 +0000 (15:17 +0000)]
fix for asserts caused by own recent commits to use customdata typemap.

8 years agofix for assert when rendering with cycles, caused by my recent commits.
Campbell Barton [Wed, 31 Oct 2012 15:14:14 +0000 (15:14 +0000)]
fix for assert when rendering with cycles, caused by my recent commits.

8 years agoFix #31482: menu with scrollers when window is too small, didn't auto scroll
Brecht Van Lommel [Wed, 31 Oct 2012 12:56:04 +0000 (12:56 +0000)]
Fix #31482: menu with scrollers when window is too small, didn't auto scroll
when using the arrow keys or mouse wheel to activate the next item.

8 years agostyle cleanup and correct own invalid comment.
Campbell Barton [Wed, 31 Oct 2012 11:45:41 +0000 (11:45 +0000)]
style cleanup and correct own invalid comment.

8 years agoUI: fix for menu scrolling when window is too small. It was not working well
Brecht Van Lommel [Wed, 31 Oct 2012 11:31:30 +0000 (11:31 +0000)]
UI: fix for menu scrolling when window is too small. It was not working well
with arbitrary button layouts like multi column menus, because it was making
assumptions about position of previous/next buttons which doesn't work in

8 years agoFix for #29056: NDOF motion events not configurable in user preferences.
Brecht Van Lommel [Wed, 31 Oct 2012 11:31:25 +0000 (11:31 +0000)]
Fix for #29056: NDOF motion events not configurable in user preferences.

8 years agofix for crash in own commit r51773. drawing VBO's used the wrong origindex.
Campbell Barton [Wed, 31 Oct 2012 11:05:32 +0000 (11:05 +0000)]
fix for crash in own commit r51773. drawing VBO's used the wrong origindex.

8 years agostyle cleanup
Campbell Barton [Wed, 31 Oct 2012 10:09:06 +0000 (10:09 +0000)]
style cleanup

8 years agomake use customdata typeoffset more, add an assert to ensure its to date.
Campbell Barton [Wed, 31 Oct 2012 09:50:24 +0000 (09:50 +0000)]
make use customdata typeoffset more, add an assert to ensure its to date.

8 years agodon't write tessface customdata layers, since tessfaces are not written either.
Campbell Barton [Wed, 31 Oct 2012 05:39:10 +0000 (05:39 +0000)]
don't write tessface customdata layers, since tessfaces are not written either.

8 years agoadd assert if zero is passed to string copy functions, would copy into first byte...
Campbell Barton [Wed, 31 Oct 2012 04:28:49 +0000 (04:28 +0000)]
add assert if zero is passed to string copy functions, would copy into first byte anyway.

8 years ago(no commit message)
Campbell Barton [Wed, 31 Oct 2012 04:24:55 +0000 (04:24 +0000)]

8 years agofix for crash in python matrix utility functions .inverted/adjugated/transposed if...
Campbell Barton [Wed, 31 Oct 2012 03:21:13 +0000 (03:21 +0000)]
fix for crash in python matrix utility functions .inverted/adjugated/transposed if the matrix has a read callback and fails.
also replace DM_get_poly_data_layer with dm->getPolyDataArray() since this is the convention in subsurf code and the functions now added.

8 years agoBGE: Committing patch #32291 "Updated profiling layout for BGE" from Angus Hollands...
Mitchell Stokes [Tue, 30 Oct 2012 22:45:08 +0000 (22:45 +0000)]
BGE: Committing patch #32291 "Updated profiling layout for BGE" from Angus Hollands (agoose77). This patch adds a headers for the profiling information and for the debug properties so they are no longer jumbled together. It also modifies how debug properties are displayed; changes "swap" to "Frametime"; and changes the display from seconds to ms, which is much more useful.

In addition to this patch, I've also modified the precision of the numbers displayed in the profiling information to make things a little cleaner.

8 years agofix [#30479] Exclamation mark '!' doesn't input with AZERTY keyboard mapping
Andrea Weikert [Tue, 30 Oct 2012 21:06:25 +0000 (21:06 +0000)]
fix [#30479] Exclamation mark '!' doesn't input with AZERTY keyboard mapping
For the french keyboard setting (AZERTY) on Windows, the '!' came back with winevent->type=312, winevent->ascii='!' and the ISTEXTINPUT only matched key codes up to 255. Now replaces with
ISKEYBOARD in wm_eventmatch.

8 years agofix compile error introduced in rev. 51773: missing header include.
Andrea Weikert [Tue, 30 Oct 2012 21:05:51 +0000 (21:05 +0000)]
fix compile error introduced in rev. 51773: missing header include.
Reported on IRC.

8 years agocode cleanup: remove unused transform snapping code (only use the BVH accelerated...
Campbell Barton [Tue, 30 Oct 2012 19:27:15 +0000 (19:27 +0000)]
code cleanup: remove unused transform snapping code (only use the BVH accelerated version now).
and quiet narrowing conversion warning between signed/unsigned int.

8 years agoremove CD_POLYINDEX customdata layer:
Campbell Barton [Tue, 30 Oct 2012 19:20:17 +0000 (19:20 +0000)]
remove CD_POLYINDEX customdata layer:
reported as [#29376] BMESH_TODO: remove tessface CD_ORIGINDEX layer

for a single mesh there could be 3 origindex mappings stored, one on the polygons and 2 on the tessfaces.

as Andrew suggests, now tessfaces (which are really a cache of polygons), using origindex to point to polygons on
the same derived mesh, and polygons only store the original index values.

8 years agoBugfix #33019
Ton Roosendaal [Tue, 30 Oct 2012 18:40:09 +0000 (18:40 +0000)]
Bugfix #33019

Grease Pencil draw - started with button from Toolbar - failed. Needed proper
event check.

8 years agoTwo fixes:
Ton Roosendaal [Tue, 30 Oct 2012 17:36:00 +0000 (17:36 +0000)]
Two fixes:

- Added versioning for reading old files with logic saved
- Added two more 'alt backspace' options, for copyright and registered trademark.
  (also 'tm' but it's not in our default font)

8 years agostyle cleanup & re-use DNA pad var with new collision group object settings.
Campbell Barton [Tue, 30 Oct 2012 16:33:40 +0000 (16:33 +0000)]
style cleanup & re-use DNA pad var with new collision group object settings.

8 years agoBGE: Adding support for Bullet's collision masks. Each object now has a collision...
Mitchell Stokes [Tue, 30 Oct 2012 15:44:16 +0000 (15:44 +0000)]
BGE: Adding support for Bullet's collision masks. Each object now has a collision mask and a collision group. Object A and object B collide if object A's groups is in object B's mask and object B's group is in object A's mask. In other words, the group defines what the object is (collision wise) and the group defines what the object can collide with.

The majority of this patch was provided by Kupoman with some edits from me and heavy testing by z0r.

8 years agoUsability: Logic editor
Ton Roosendaal [Tue, 30 Oct 2012 15:33:03 +0000 (15:33 +0000)]
Usability: Logic editor

- View now restricts to the actual region you work on. Makes zoom and pan nicer.
- Added HOME for reset view to 1:1 zoom level.

Also: fixed nasty bug in view2d code that checked validity of 2d views, only
showed (afaik) in the logic eidtor though.

Effect was that zoom in/out would weirdly jump when going across zoomlevel 1.

8 years agominor improvement to vector api use, replace add, multiply by 0.5 with mid_v3_v3v3
Campbell Barton [Tue, 30 Oct 2012 14:22:49 +0000 (14:22 +0000)]
minor improvement to vector api use, replace add, multiply by 0.5 with mid_v3_v3v3

8 years agowhen an invalid subtype is passed to a property, a list of valid subtypes is now...
Campbell Barton [Tue, 30 Oct 2012 12:45:42 +0000 (12:45 +0000)]
when an invalid subtype is passed to a property, a list of valid subtypes is now included in the exception message.

from bug report [#33018], this avoids common mistakes.

8 years agorename subtype FILENAME --> FILE_NAME to match FILE_PATH, DIR_PATH
Campbell Barton [Tue, 30 Oct 2012 12:36:54 +0000 (12:36 +0000)]
rename subtype FILENAME --> FILE_NAME to match FILE_PATH, DIR_PATH

8 years agostyle cleanup
Campbell Barton [Tue, 30 Oct 2012 12:18:45 +0000 (12:18 +0000)]
style cleanup

8 years agoadd in assert's to double check the line lenth is never <0
Campbell Barton [Tue, 30 Oct 2012 12:08:44 +0000 (12:08 +0000)]
add in assert's to double check the line lenth is never <0

8 years agofix for selection offset with indentation in the python console.
Campbell Barton [Tue, 30 Oct 2012 11:57:37 +0000 (11:57 +0000)]
fix for selection offset with indentation in the python console.

8 years agoCycles: optimization to not compile shaders and load images that are not
Brecht Van Lommel [Tue, 30 Oct 2012 11:51:17 +0000 (11:51 +0000)]
Cycles: optimization to not compile shaders and load images that are not
used by any mesh/lamp/world.

8 years agominor changes to select similar,
Campbell Barton [Tue, 30 Oct 2012 11:40:36 +0000 (11:40 +0000)]
minor changes to select similar,
- replace ngon_fake_area() with generic call to BM_face_calc_area().
- add defvert_find_shared() utility function.

8 years agoFix for own r51737.
Bastien Montagne [Tue, 30 Oct 2012 11:00:06 +0000 (11:00 +0000)]
Fix for own r51737.

Refactoring of draw code showed another problem: The MCol we want to draw may change without dm rebuild (e.g. when enabling solid textured option)! Also, choosing which MCol layer to use in GPU code is stupid, different draw modes use different layers/order of precedence!

Solved this by adding a new colType parameter to GPU_color_setup, and removing any 'color choosing' code from gpu_buffers.c.

8 years agoFix build for recent bmo commit (gcc wants a return value in any case! ;) ).
Bastien Montagne [Tue, 30 Oct 2012 09:29:01 +0000 (09:29 +0000)]
Fix build for recent bmo commit (gcc wants a return value in any case! ;) ).

8 years agobad naming, the bmesh operator only tags, not selects.
Campbell Barton [Tue, 30 Oct 2012 08:02:32 +0000 (08:02 +0000)]
bad naming, the bmesh operator only tags, not selects.

8 years agocode cleanup: move select-similar bmesh operators into their own file since there...
Campbell Barton [Tue, 30 Oct 2012 07:59:25 +0000 (07:59 +0000)]
code cleanup: move select-similar bmesh operators into their own file since there are 3 operators here that share
utility functions with eachother but have nothing in common with other operators in bmo_utils.c

8 years agoadd the option to select Equal/Greater/Less when selecting similar.
Campbell Barton [Tue, 30 Oct 2012 07:29:17 +0000 (07:29 +0000)]
add the option to select Equal/Greater/Less when selecting similar.

Recently addons were submitted for review and this was the only advantage they had over blenders existing internal
select-similar tool.

8 years agoadd option to select face by matching number of sides.
Campbell Barton [Tue, 30 Oct 2012 06:43:30 +0000 (06:43 +0000)]
add option to select face by matching number of sides.

8 years agocorrect assertion
Campbell Barton [Tue, 30 Oct 2012 06:25:23 +0000 (06:25 +0000)]
correct assertion

8 years agoDisallow collection add/remove/clear/move when drawing. - similar to how writing...
Campbell Barton [Tue, 30 Oct 2012 03:05:45 +0000 (03:05 +0000)]
Disallow collection add/remove/clear/move when drawing. - similar to how writing to attributes is disabled.

8 years agoRemoving BLENDER_GAME from the COMPAT_ENGINES set for the sun lamp's Sky & Atmosphere...
Mitchell Stokes [Tue, 30 Oct 2012 01:59:15 +0000 (01:59 +0000)]
Removing BLENDER_GAME from the COMPAT_ENGINES set for the sun lamp's Sky & Atmosphere panel since it isn't supported in the BGE.

8 years agoFix: wrong brush drawn in image painting, image editor if uv sculpt is on. Now the...
Antony Riakiotakis [Mon, 29 Oct 2012 19:47:26 +0000 (19:47 +0000)]
Fix: wrong brush drawn in image painting, image editor if uv sculpt is on. Now the correct paint struct is returned and the image zoom is calculated correctly

8 years agoBugfix:
Ton Roosendaal [Mon, 29 Oct 2012 19:18:13 +0000 (19:18 +0000)]

3D text object editing, ALT+Backspace trick is back to construct special characters.
Like: O , Alt+Backspace , /  creates an O with a / in it.

It also makes plus-minus, unequal, copyright, 1/2, 3/4. etc. Easy method you
never forget after using once!

Got broken with adding UTF support a year ago.

8 years agofix [#33011] "System" tab empty in OSX - file browser
Andrea Weikert [Mon, 29 Oct 2012 18:25:35 +0000 (18:25 +0000)]
fix [#33011] "System" tab empty in OSX - file browser
* items were wrongly added too SYSTEM_BOOKMARKS rather than SYSTEM, now fixed

8 years agoBuildbot: hopefully fix for missed sound on glibc2.11 slaves
Sergey Sharybin [Mon, 29 Oct 2012 18:03:32 +0000 (18:03 +0000)]
Buildbot: hopefully fix for missed sound on glibc2.11 slaves

8 years agoYACBSF. Yet Another Classic Blenderplayer Stub Fix.
Antony Riakiotakis [Mon, 29 Oct 2012 18:00:29 +0000 (18:00 +0000)]
YACBSF. Yet Another Classic Blenderplayer Stub Fix.

8 years agoTo keep my commit rate high! :)
Ton Roosendaal [Mon, 29 Oct 2012 17:47:56 +0000 (17:47 +0000)]
To keep my commit rate high! :)

8 years agoYet another hanging variable in event code - code cleanup woes.
Ton Roosendaal [Mon, 29 Oct 2012 17:44:05 +0000 (17:44 +0000)]
Yet another hanging variable in event code - code cleanup woes.

This should make trackpads work.

8 years agoBugfix #33004
Ton Roosendaal [Mon, 29 Oct 2012 17:41:19 +0000 (17:41 +0000)]
Bugfix #33004

Screencast recording stopped on a undo/redo. This was because all thread jobs
were killed then. Now it leaves screen jobs (screen cast) running, that's
data that doesn't change on undos.

Also renamed jobs_stop_all() to jobs_kill_all() - it terminates threads.

8 years agoComplete fix for [#33002] Wrong vertex color.
Bastien Montagne [Mon, 29 Oct 2012 16:26:18 +0000 (16:26 +0000)]
Complete fix for [#33002] Wrong vertex color.

Appart from the color glitch, there was several problems with vpaint:
* "fast_update" mode was never on, because of wrong testing code;
* drawing refresh during stroke in "fast_update" (i.e. no dm rebuild) mode was broken in VBO mode, because updated (tess data) mcol wasn't moved to colors GPUBuffer.

Solved the later point by adding a new DM_DIRTY_MCOL_UPDATE_DRAW flag to DerivedMesh dirty var, which is set each time vpaint stroke directly update me->mcol, and forces GPU_color_setup() to refresh the gpu's colors buffer.

Also got rid of the uggly GPU_color3_upload(), which basically did the same thing, but with an additional intermediate buffer !

8 years agoBuildbot: use proper archive name for glibc2.11 archives
Sergey Sharybin [Mon, 29 Oct 2012 16:07:16 +0000 (16:07 +0000)]
Buildbot: use proper archive name for glibc2.11 archives

8 years agostyle cleanup: also quiet harmless compiler warning.
Campbell Barton [Mon, 29 Oct 2012 15:43:54 +0000 (15:43 +0000)]
style cleanup: also quiet harmless compiler warning.

8 years agoFix to make NDoF work again.
Ton Roosendaal [Mon, 29 Oct 2012 15:40:43 +0000 (15:40 +0000)]
Fix to make NDoF work again.