7 years agostyle cleanup
Campbell Barton [Mon, 5 Nov 2012 04:19:30 +0000 (04:19 +0000)]
style cleanup

7 years agoCompile fix on Mingw:
Joshua Leung [Mon, 5 Nov 2012 02:40:10 +0000 (02:40 +0000)]
Compile fix on Mingw:

"interface" appeared to be a shadowed var (or even a macro/define elsewhere)
which was causing errors like:
intern\cycles\blender\blender_mesh.cpp:124:23: error: multiple types in one
intern\cycles\blender\blender_mesh.cpp:124:23: error: declaration does not
declare anything [-fpermissive]

7 years agoCycles: improve Anisotropic BSDF node, changing the Roughness U/V inputs to
Brecht Van Lommel [Sun, 4 Nov 2012 22:31:32 +0000 (22:31 +0000)]
Cycles: improve Anisotropic BSDF node, changing the Roughness U/V inputs to
Roughness, Anisotropy and Rotation. Also a fix for automatic tangents and
OSL attribute handling.

Meaning of new sockets explained in the documentation:

7 years agoFix part of #33055: uv mapping did not use the right image from the material to
Brecht Van Lommel [Sun, 4 Nov 2012 22:31:21 +0000 (22:31 +0000)]
Fix part of #33055: uv mapping did not use the right image from the material to
do aspect ratio correction when cycles was enabled.

7 years agoBGE: This patch adds a character wrapper (similar to the already implemented vehicle...
Mitchell Stokes [Sun, 4 Nov 2012 20:56:02 +0000 (20:56 +0000)]
BGE: This patch adds a character wrapper (similar to the already implemented vehicle wrapper) to control character physics options. Currently supported options are:
  * jump() -- causes the character to jump
  * onGround -- specifies whether or not the character is on the ground
  * gravity -- controls the "gravity" that the character physics uses for the character

More options could be added (such as jump speed, step height, make fall speed, max slope, etc).

7 years agoauto-link solo-nodes when making group
Dalai Felinto [Sun, 4 Nov 2012 19:18:12 +0000 (19:18 +0000)]
auto-link solo-nodes when making group
if make group is called with only one node selected ALL the node sockets are linked to the node group

with help+review from Lukas Toenne

This patch aims towards motivating users to use Group Node to share OSL nodes

7 years agoEditors UI:
Thomas Dinges [Sun, 4 Nov 2012 18:26:30 +0000 (18:26 +0000)]
Editors UI:
* Add "Toggle Full Screen" and "Duplicate Area into New Window" operators to the view menu, was missing in those 2 operators. Patch [#33076] by Harley Acheson, thanks.

* Also moved those two operators to the top in text editor, for consistency.

7 years agoImage Editor Operators:
Thomas Dinges [Sun, 4 Nov 2012 18:05:25 +0000 (18:05 +0000)]
Image Editor Operators:
* Tool tip improvements for two operators.

Patch [#33077] by Harley Acheson, thanks!

7 years agofix own error in r51819, was reading outside of the buffer, also comment unused vars.
Campbell Barton [Sun, 4 Nov 2012 14:46:20 +0000 (14:46 +0000)]
fix own error in r51819, was reading outside of the buffer, also comment unused vars.

7 years agoPossible bugfix 32474
Ton Roosendaal [Sun, 4 Nov 2012 13:34:13 +0000 (13:34 +0000)]
Possible bugfix 32474

Windows systems: text editor, text object, doesn't allow to input the standard
set of ALT+key characters (the ones coming from the OS).

- Reverted fix january 2012 - that meant to use text object ALT+keys
- Removed old (90ies) feature for hardcoded special characters in Text object.
  (OS delivers this now)

Will wait for confirmation by windows compiler :)

7 years agoBugfix #32987
Ton Roosendaal [Sun, 4 Nov 2012 12:33:58 +0000 (12:33 +0000)]
Bugfix #32987

"Set origin to cursor" tool failed for parented/rotated objects.
Matrix mashup.

Thanks to Ben Batt for the fix!

7 years agoBugfix #33074
Ton Roosendaal [Sun, 4 Nov 2012 12:13:26 +0000 (12:13 +0000)]
Bugfix #33074

In armature editmode, with mirroring, after duplication of a bone and using
the Wkey "flip names" you get a crash. Code for naming was accessing a NULL
in the bPose channel - not set until leaving editmode.

Thanks to Ben Batt for tackling the issue :)

7 years agoNode reroute cut operator update.
Lukas Toenne [Sun, 4 Nov 2012 11:57:49 +0000 (11:57 +0000)]
Node reroute cut operator update.

Cutting mulitple links with for inserting reroute nodes would previously insert only one reroute node for the first cut link.

Now the operator will insert a reroute node for every link in the cut line. Also, if several links share the same input/output socket, it will insert only a single reroute node, which all affected links will then share.

7 years agoBugfix 33075
Ton Roosendaal [Sun, 4 Nov 2012 11:53:13 +0000 (11:53 +0000)]
Bugfix 33075

Nodes could use duplicated memory - and on free you get duplicate-free errors.
Affected texture nodes, but I suspect compositing too.

Fix found by Philipp Oeser. Thanks!

7 years agocode cleanup: double promotions
Campbell Barton [Sun, 4 Nov 2012 10:20:16 +0000 (10:20 +0000)]
code cleanup: double promotions

7 years agocode cleanup: quiet -Wdouble-promotion, disabled this warnings for a few files since...
Campbell Barton [Sun, 4 Nov 2012 07:18:29 +0000 (07:18 +0000)]
code cleanup: quiet -Wdouble-promotion, disabled this warnings for a few files since its done throughout the code in some places.

7 years agocode cleanup: replace macro with inline function for dynamic paint.
Campbell Barton [Sun, 4 Nov 2012 06:21:09 +0000 (06:21 +0000)]
code cleanup: replace macro with inline function for dynamic paint.

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:

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.

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.

  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.

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

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 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];


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

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.

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