blender-staging.git
7 years agoMerged changes in the trunk up to revision 51853.
Tamito Kajiyama [Sun, 4 Nov 2012 02:22:56 +0000 (02:22 +0000)]
Merged changes in the trunk up to revision 51853.

Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/bmesh/operators/bmo_utils.c

This commit also includes a fix of a bug identified during the merge and committed in revision 51853.
Thanks Thomas (dingto) for the timely fix!

7 years agoFix for r51837.
Thomas Dinges [Sun, 4 Nov 2012 01:32:39 +0000 (01:32 +0000)]
Fix for r51837.
* mat->nodetree is accessed regardless of whether or not the material node is in use-

Patch provided by Tamito Kajiyama, thanks!

7 years agoUI Tweak:
Thomas Dinges [Sun, 4 Nov 2012 01:05:25 +0000 (01:05 +0000)]
UI Tweak:
* Use alignment for thread buttons in BI, same as in Cycles.

7 years ago3D View UI:
Thomas Dinges [Sun, 4 Nov 2012 00:54:12 +0000 (00:54 +0000)]
3D View UI:
* Patch [#33073] Remove Extra Menu Level from Object Parent and Track
* Did not commit the icon changes here, separator line should be sufficient.

Patch by Harley Acheson, thanks!

7 years agoNode UI:
Thomas Dinges [Sun, 4 Nov 2012 00:46:26 +0000 (00:46 +0000)]
Node UI:
* Add 3 more operators to the Node menu.

node.join [join selected nodes in a new frame]
node.detach [remove selected nodes from their frame]
node.links_detach [remove all links to selected nodes and try to reconnect neighboring nodes together]

Patch by Philipp Oeser, thanks!

7 years agoTon's last do_versions commit got rid of do_versions code for collision masks. Adding...
Mitchell Stokes [Sun, 4 Nov 2012 00:37:45 +0000 (00:37 +0000)]
Ton's last do_versions commit got rid of do_versions code for collision masks. Adding it back in so collision in the BGE work again.

7 years agoOSL / Filebrowser:
Thomas Dinges [Sat, 3 Nov 2012 18:52:44 +0000 (18:52 +0000)]
OSL / Filebrowser:
* Add .osl extension to the TEXTFILE filter, so .osl files will show up when the filter is enabled. (Text Editor -> Open Text Block)

7 years agocode cleanup: float <> double conversion.
Campbell Barton [Sat, 3 Nov 2012 18:23:30 +0000 (18:23 +0000)]
code cleanup: float <> double conversion.

7 years agostyle cleanup
Campbell Barton [Sat, 3 Nov 2012 18:14:14 +0000 (18:14 +0000)]
style cleanup

7 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.

7 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.

7 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.

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

7 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.

7 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:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/OSL
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.65/Cycles

These changes require an OSL build from this repository:
https://github.com/DingTo/OpenShadingLanguage

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.

7 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.

7 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

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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

7 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.

7 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...

7 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.

7 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.

7 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.

7 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.

7 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.

7 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

7 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

7 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+

7 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.

7 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.

7 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.

7 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).

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

7 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)

7 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.

Example:
  import bpy
  image = bpy.data.images.new(name="a", width=5, height=5)
  bpy.data.images.remove(image)
  print(image.name)

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.

7 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
key-press).

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.

7 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

7 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:

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

with:

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

Tss!

7 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().

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

7 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

7 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.

7 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.

7 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.

7 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.

7 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()

7 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()

7 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!

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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
general.

7 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.

7 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.

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

7 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.

7 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.

7 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.

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

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.
(CD_POLYINDEX and CD_ORIGINDEX).

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.

7 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.

7 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)

7 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.

7 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.

7 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.

7 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

7 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.

7 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

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

7 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

7 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.

7 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.

7 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.

7 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.

7 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! ;) ).

7 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.

7 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

7 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.

7 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.

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

7 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.

7 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.

7 years agoAdditional UI tweaking: the Freestyle toggle of the Include section in the Layers
Tamito Kajiyama [Mon, 29 Oct 2012 23:17:07 +0000 (23:17 +0000)]
Additional UI tweaking: the Freestyle toggle of the Include section in the Layers
panel is greyed out when Freestyle is globally disabled.

7 years agoFurther tweaking of the recent UI changes (new layer context), mostly by splitting
Tamito Kajiyama [Mon, 29 Oct 2012 23:11:55 +0000 (23:11 +0000)]
Further tweaking of the recent UI changes (new layer context), mostly by splitting
the big layers panel in three, and fixing Freestyle's panels poll function to hide
them when Freestyle is disabled.

Patch contribution by Bastien Montagne, thanks!

7 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