blender.git
6 years agominor changes to templates\13
Campbell Barton [Tue, 22 Oct 2013 00:25:15 +0000 (00:25 +0000)]
minor changes to templates\13

6 years agofix for invalid RNA created for the 3D viewport header (made ID reporting show incorr...
Campbell Barton [Mon, 21 Oct 2013 23:46:45 +0000 (23:46 +0000)]
fix for invalid RNA created for the 3D viewport header (made ID reporting show incorrectly).

6 years agostyle cleanup
Campbell Barton [Mon, 21 Oct 2013 23:35:08 +0000 (23:35 +0000)]
style cleanup

6 years agoFix #37169 brush UI not getting updated. A notifier was missing for
Antony Riakiotakis [Mon, 21 Oct 2013 18:08:20 +0000 (18:08 +0000)]
Fix #37169 brush UI not getting updated. A notifier was missing for
all unified paint settings properties, made sure to notify that
active brush has changed.

6 years agoPartial fix for [#37159] Particle Emitter set to not render still appears in 3D view...
Bastien Montagne [Mon, 21 Oct 2013 15:44:09 +0000 (15:44 +0000)]
Partial fix for [#37159] Particle Emitter set to not render still appears in 3D view, when display set to rendered only. Emitter also appears in all GL Renders and some F12 renders.

Fixed OpenGL part: in draw_object, when object has some particle systems and none of them render the emitter, and display option is set to show only rendered objects, skip this object.

Note: Cycles matter I did not investigate, looks like a render-engine issue.

6 years agoJump to Next/Previous Marker operators in the timeline menu, shortcuts are
Brecht Van Lommel [Mon, 21 Oct 2013 15:00:22 +0000 (15:00 +0000)]
Jump to Next/Previous Marker operators in the timeline menu, shortcuts are
ctrl + shift + left/right arrow key.

Patch #37142 by Henrik Aarnio, thanks!

6 years agoFollowup to r60857: code was assuming markers were sorted, which is not guaranted...
Bastien Montagne [Mon, 21 Oct 2013 14:40:14 +0000 (14:40 +0000)]
Followup to r60857: code was assuming markers were sorted, which is not guaranted. Also heavily simplified it (previous code was supposed to have optimizations, but ended just looping twice over the markers' list...).

Many thanks to Brecht and Sergey for noting the quirk and reviews! :)

6 years agoFix [#37160] Rotate edge direction changed between 2.64 and 2.65 (low priority)
Bastien Montagne [Mon, 21 Oct 2013 11:13:39 +0000 (11:13 +0000)]
Fix [#37160] Rotate edge direction changed between 2.64 and 2.65 (low priority)

Easy to fix, but do not really understand *why* this is needed...

6 years agoProject Pampa request: show curves for node grupps
Sergey Sharybin [Sun, 20 Oct 2013 17:53:29 +0000 (17:53 +0000)]
Project Pampa request: show curves for node grupps

It was not implemented in anim filter yet.

it's strictly speaking not so much clear how
"selected only" mode is expected to work when
having multiple node trees editing at the same
time. For now all the animation data from
selected group will be displayed.

6 years agoSplash screen update for final 2.69 release (remove release candidate text).
Brecht Van Lommel [Sun, 20 Oct 2013 14:42:26 +0000 (14:42 +0000)]
Splash screen update for final 2.69 release (remove release candidate text).

6 years agoCode cleanup: de-duplicate implementation of get_texture_value
Sergey Sharybin [Sun, 20 Oct 2013 13:01:07 +0000 (13:01 +0000)]
Code cleanup: de-duplicate implementation of get_texture_value

Expect to be no functional changes :)

6 years agoCode cleanup: added generic function copt_m3_m3d
Sergey Sharybin [Sun, 20 Oct 2013 12:08:51 +0000 (12:08 +0000)]
Code cleanup: added generic function copt_m3_m3d

6 years agoFix #37153: Bool union of 2 planes makes Blender 2.69 RC2 hang
Sergey Sharybin [Sun, 20 Oct 2013 10:13:19 +0000 (10:13 +0000)]
Fix #37153: Bool union of 2 planes makes Blender 2.69 RC2 hang

Fix deadlock in Carve when rescaling to zero scale.
basically, scaling to zero scale is not what we want :)

Boolean result could still be unpredictable coz plane is
not a closed manifold.

6 years agoFix compositor rendering scenes multiple times in some cases
Sergey Sharybin [Sun, 20 Oct 2013 01:09:25 +0000 (01:09 +0000)]
Fix compositor rendering scenes multiple times in some cases

Issue was caused by Blender Internal changing LIB_DOIT flag
for scene when it gets updated for new frame. This leads into
conflict with flag used for tagging scenes fr render,

For now made it so nodes are being tagged instead of scene.
Only none node from those who're sharing the scene will be
tagged. And rendering scenes for node tree now checks for
node flag instead of scene's datablock one.

Ideally this tag would be replaced with scenes stored in an
array, but then it's not so clear how to check which node
to update.

6 years agoFix for wrong implementation of mmap in lock-free allocator
Sergey Sharybin [Sun, 20 Oct 2013 00:12:54 +0000 (00:12 +0000)]
Fix for wrong implementation of mmap in lock-free allocator

- Freeing was not using proper block length
- Duplicating memory block was not aware of
  mmaped blocks.

6 years agofix [#37145] "Triangulate Face" crash in specific scene
Dalai Felinto [Sat, 19 Oct 2013 21:20:50 +0000 (21:20 +0000)]
fix [#37145] "Triangulate Face" crash in specific scene
it was asserting if the last edge faces were already all set

6 years agoApplied patch [#34178] tile rendering for fast gaussian blur
Jeroen Bakker [Sat, 19 Oct 2013 17:45:58 +0000 (17:45 +0000)]
Applied patch [#34178] tile rendering for fast gaussian blur

Thanks to David M (erwin94)
only added some comments.

https://projects.blender.org/tracker/?func=detail&aid=34178&group_id=9&atid=127

6 years agoCompositor: did some inner loop optimizations of the fast gaussian blur.
Jeroen Bakker [Sat, 19 Oct 2013 16:51:35 +0000 (16:51 +0000)]
Compositor: did some inner loop optimizations of the fast gaussian blur.

 - At Mind -

6 years agoMore complete handling of printf formatting in msgid/msgstr checks.
Bastien Montagne [Sat, 19 Oct 2013 14:28:32 +0000 (14:28 +0000)]
More complete handling of printf formatting in msgid/msgstr checks.

(That commit, r60813, should never have been done to 2.69 branch, will revert it there, sorry :/ ).

6 years agoArg! Fix another bug in split normal core algorithm (some flat faces were ignored...
Bastien Montagne [Sat, 19 Oct 2013 13:48:51 +0000 (13:48 +0000)]
Arg! Fix another bug in split normal core algorithm (some flat faces were ignored, depending on the order of evaluation)... :/

6 years agoFix [#37146] Dopesheet / Graph editor, select columns between markers doesn't appear...
Bastien Montagne [Sat, 19 Oct 2013 13:39:27 +0000 (13:39 +0000)]
Fix [#37146] Dopesheet / Graph editor, select columns between markers doesn't appear to work.

Init min/max values were just switched...

6 years agoFix: ensure cycles mist pass stays in range 0..1, it could have values out of
Brecht Van Lommel [Fri, 18 Oct 2013 23:44:25 +0000 (23:44 +0000)]
Fix: ensure cycles mist pass stays in range 0..1, it could have values out of
this range due to sampling noise.

Side note: I looked into the mist pass because it was apparently not calculating
mist correctly on characters with transparent hair. Turns out this is just
sampling noise that goes away with more samples.

This noise is because the ray will randomly go to the next transparency layer or
get reflected, the path tracing integrator will not branch the path and only pick
one of the two directions each time.

Branched path tracing however will shade all transparent layers for each AA
sample, which means this source of noise is eliminated.

6 years agoRemove paranoid check which was marked as unneeded for a while already
Sergey Sharybin [Fri, 18 Oct 2013 23:41:11 +0000 (23:41 +0000)]
Remove paranoid check which was marked as unneeded for a while already

6 years agoMove utility functions from mball to mathutils
Sergey Sharybin [Fri, 18 Oct 2013 23:38:51 +0000 (23:38 +0000)]
Move utility functions from mball to mathutils

6 years agoFix #37134: cycles viewport not displaying correct with multi GPU render
Brecht Van Lommel [Fri, 18 Oct 2013 20:11:07 +0000 (20:11 +0000)]
Fix #37134: cycles viewport not displaying correct with multi GPU render
and graphics card that does not support CUDA OpenGL interop.

6 years agoID blocks can be pasted to text editor now with mouse drag and move
Sergey Sharybin [Fri, 18 Oct 2013 17:35:20 +0000 (17:35 +0000)]
ID blocks can be pasted to text editor now with mouse drag and move

6 years agoMake strict compiler flags happy
Sergey Sharybin [Fri, 18 Oct 2013 15:30:38 +0000 (15:30 +0000)]
Make strict compiler flags happy

6 years agoFix cycles hair segments not giving correct vector speed pass, the motion vector
Brecht Van Lommel [Fri, 18 Oct 2013 15:03:18 +0000 (15:03 +0000)]
Fix cycles hair segments not giving correct vector speed pass, the motion vector
export was not implemented yet for this primitive.

6 years agoTweak for action group -> bone select feature
Joshua Leung [Fri, 18 Oct 2013 14:15:08 +0000 (14:15 +0000)]
Tweak for action group -> bone select feature

Set newly selected bone as "active", so that the transform properties show the
correct values for the newly selected bone

6 years agoAdd debug prints to the PSD loader in imbuf. The error message can be obtained from...
Irie Shinsuke [Fri, 18 Oct 2013 10:43:54 +0000 (10:43 +0000)]
Add debug prints to the PSD loader in imbuf.  The error message can be obtained from OIIO by geterror().

6 years agoFix for wrong active render layer after copying hr scene
Sergey Sharybin [Fri, 18 Oct 2013 09:45:21 +0000 (09:45 +0000)]
Fix for wrong active render layer after copying hr scene

Also fix crash for files which could have been saved with
wrong active render layer.

6 years agoPampa Project request: FPS in sequencer editor
Sergey Sharybin [Thu, 17 Oct 2013 21:17:33 +0000 (21:17 +0000)]
Pampa Project request: FPS in sequencer editor

perhaps ED_scene_draw_fps is actually better to be placed
to a better place, but consider this is good for now.

6 years agoFix #37110, After deletion of large scene, file still huge.
Lukas Toenne [Thu, 17 Oct 2013 20:18:48 +0000 (20:18 +0000)]
Fix #37110, After deletion of large scene, file still huge.
Objects were not being freed when unlinked from all scenes, due to user count increments on the ParticleSystem->parent pointers. These were referencing the objects themselves, creating a user count of 1
and preventing free. Object pointers should not usually do user counting, except in some cases like scenes and groups (thanks to Brecht for clarifying this).

6 years agoPatch [#37115] Surface split and separate operators
Kevin Mackay [Thu, 17 Oct 2013 19:57:14 +0000 (19:57 +0000)]
Patch [#37115] Surface split and separate operators

Added surface support to recent curve split operator, completing quick hack todo
Updated nurbs separate operator to make use of new split logic, completing tools todo
Added 'Delete segment' option to surfaces and improved surface duplication, used for split/separate

6 years agoMissing ParticleSystem->parent pointer check in BKE_object_unlink.
Lukas Toenne [Thu, 17 Oct 2013 19:31:59 +0000 (19:31 +0000)]
Missing ParticleSystem->parent pointer check in BKE_object_unlink.

6 years agoFix #37048: Default keybindings: text.find_next in Text (Global), should be in Text...
Sergey Sharybin [Thu, 17 Oct 2013 18:49:09 +0000 (18:49 +0000)]
Fix #37048: Default keybindings: text.find_next in Text (Global), should be in Text Generic

6 years agoFix #37123: UV editor view does not update when using large faces
Sergey Sharybin [Thu, 17 Oct 2013 18:29:01 +0000 (18:29 +0000)]
Fix #37123: UV editor view does not update when using large faces

Update tagging was happening only after full triangle was handled.
Now made it so images are updating once in 0.5sec, progress bar
will still update only after the whole triangle is done.

6 years agoFix cycles mesh synchronization being too slow with vector blur and duplis.
Brecht Van Lommel [Thu, 17 Oct 2013 16:05:57 +0000 (16:05 +0000)]
Fix cycles mesh synchronization being too slow with vector blur and duplis.

6 years agoFix crash in scenes without camera markers, after recent fix for #37097,
Brecht Van Lommel [Thu, 17 Oct 2013 15:51:12 +0000 (15:51 +0000)]
Fix crash in scenes without camera markers, after recent fix for #37097,
first_camera variable was used uninitialized.

6 years agoFix for GCC bing stupid and not casting float*[3] to const float*[3] without a wanring :S
Sergey Sharybin [Thu, 17 Oct 2013 14:44:23 +0000 (14:44 +0000)]
Fix for GCC bing stupid and not casting float*[3] to const float*[3] without a wanring :S

6 years agoProject Pampa Request: Selecting groups in animation editors selects
Joshua Leung [Thu, 17 Oct 2013 14:19:03 +0000 (14:19 +0000)]
Project Pampa Request: Selecting groups in animation editors selects
corresponding bones

6 years agoFix #37097: Setting scene frame does not update active camera
Sergey Sharybin [Thu, 17 Oct 2013 14:10:03 +0000 (14:10 +0000)]
Fix #37097: Setting scene frame does not update active camera

The issue was caused by uncertainty of current camera when
there're no markers to the left of current frame.

Now in this case camera from the top-left marker will be used.

6 years agoFix #37109: missing cycles texture display in edit mode.
Brecht Van Lommel [Thu, 17 Oct 2013 14:04:10 +0000 (14:04 +0000)]
Fix #37109: missing cycles texture display in edit mode.

My previous fix for uninitialized texture coordinates was not working well,
and in fact there was a bigger issue with GLSL drawing and missing attributes
with immediate draw mode. Now it will explicitly pass zero rather than having
it use whatever value was set last.

6 years agoFix #37122: Text Editor: New Open-Shortcut different from Text > Open Text Block
Sergey Sharybin [Thu, 17 Oct 2013 12:53:37 +0000 (12:53 +0000)]
Fix #37122: Text Editor: New Open-Shortcut different from Text > Open Text Block

Seems no user counter tricks are needed from r23598.

Also, r33453 is obviously wrong, because new ID's user counter is 1,
and could not exceed this value.

6 years agoFix #37117: MCE prefetching fails with non-ascii characters in path
Sergey Sharybin [Thu, 17 Oct 2013 12:28:32 +0000 (12:28 +0000)]
Fix #37117: MCE prefetching fails with non-ascii characters in path

6 years agoFix #37091: Reset to default of Sky Texture's Dot freezes it at 0,0,0
Sergey Sharybin [Thu, 17 Oct 2013 10:50:54 +0000 (10:50 +0000)]
Fix #37091: Reset to default of Sky Texture's Dot freezes it at 0,0,0

6 years agoFix #37106: Hair Length vanishes when Advanced is enabled
Sergey Sharybin [Thu, 17 Oct 2013 10:42:47 +0000 (10:42 +0000)]
Fix #37106: Hair Length vanishes when Advanced is enabled

Seems to be just a missing case from r34687.

Could not see a reason why hair length is to be hidden in
advanced settings mode.

6 years agoadd local _PyLong_AsInt() needed for python older then 3.3.2
Campbell Barton [Thu, 17 Oct 2013 09:58:36 +0000 (09:58 +0000)]
add local _PyLong_AsInt() needed for python older then 3.3.2

6 years agoFix #37118: MCEr: Prefetch frames doesn't respect input color space
Sergey Sharybin [Thu, 17 Oct 2013 09:44:08 +0000 (09:44 +0000)]
Fix #37118: MCEr: Prefetch frames doesn't respect input color space

6 years agoFix #37119: MCE: Prefetching doesn't fetch last frame of an image-sequence.
Sergey Sharybin [Thu, 17 Oct 2013 09:19:03 +0000 (09:19 +0000)]
Fix #37119: MCE: Prefetching doesn't fetch last frame of an image-sequence.

Silly mistake in final condition. Now it works fine.

Would be nice to have this for the final release, simple oneliner.

6 years agoi18n utils: check not only that the number of printf markers are the same in msgid...
Bastien Montagne [Thu, 17 Oct 2013 06:52:26 +0000 (06:52 +0000)]
i18n utils: check not only that the number of printf markers are the same in msgid and msgstr, but also that they are of the same type and order. Sorry, should have done that from the beginning... :/

This should prevent any bug like [#37095] Timeline crash when chose any keying set then press keyframe-insert, to appear again.

6 years agoFix build failure with VS2012 + SCons, caused by redefinition of the bool type.
Irie Shinsuke [Thu, 17 Oct 2013 06:40:35 +0000 (06:40 +0000)]
Fix build failure with VS2012 + SCons, caused by redefinition of the bool type.

6 years agoadd typechecks when assigning id-property arrays from python (overflows and errors...
Campbell Barton [Thu, 17 Oct 2013 03:18:21 +0000 (03:18 +0000)]
add typechecks when assigning id-property arrays from python (overflows and errors weren't detected)
reduce/simplify exceptions more.

6 years agosimplify & improve error handling for id-property python-api.
Campbell Barton [Thu, 17 Oct 2013 02:57:59 +0000 (02:57 +0000)]
simplify & improve error handling for id-property python-api.

6 years agofix [#37105] Long int IDproperties produces errors at weird spots.
Campbell Barton [Thu, 17 Oct 2013 02:36:33 +0000 (02:36 +0000)]
fix [#37105] Long int IDproperties produces errors at weird spots.

6 years agopatch [#37114] copypaste for NORMAL buttons (BUT_NORMAL)
Campbell Barton [Wed, 16 Oct 2013 23:42:44 +0000 (23:42 +0000)]
patch [#37114] copypaste for NORMAL buttons (BUT_NORMAL)
from Philipp Oeser (lichtwerk)

6 years agocorrect BM_edge_face_pair() being called inside BLI_assert() - this needed to run...
Campbell Barton [Wed, 16 Oct 2013 22:07:16 +0000 (22:07 +0000)]
correct BM_edge_face_pair() being called inside BLI_assert() - this needed to run every time.
also other minor changes.

6 years agoTriangulate modifier - beauty option is back
Dalai Felinto [Wed, 16 Oct 2013 17:58:00 +0000 (17:58 +0000)]
Triangulate modifier - beauty option is back

Patch reviewed and with collaborations from Campbell Barton

6 years agoBGE: Fix to allow render options such display framerate and profile to work
Mitchell Stokes [Wed, 16 Oct 2013 17:54:12 +0000 (17:54 +0000)]
BGE: Fix to allow render options such display framerate and profile to work
when launching the Blenderplayer from Blender.

This bug was reported and fixed by SolarLune.

6 years agoProject Pampa request: copy-paste for curve mapping widgets
Sergey Sharybin [Wed, 16 Oct 2013 17:48:33 +0000 (17:48 +0000)]
Project Pampa request: copy-paste for curve mapping widgets

Use C-c for copy, C-v for paste over the widget.

6 years agoFix #37084, Backdrop not invalidating inside node groups.
Lukas Toenne [Wed, 16 Oct 2013 07:55:52 +0000 (07:55 +0000)]
Fix #37084, Backdrop not invalidating inside node groups.
Extended the is_active_group flag such that both the current edittree as well as the base node tree in Scene do a viewer node update.

6 years agoadd IDP_FreeFromGroup(), replaces IDP_RemFromGroup(), IDP_FreeProperty(), MEM_freeN().
Campbell Barton [Wed, 16 Oct 2013 05:29:28 +0000 (05:29 +0000)]
add IDP_FreeFromGroup(), replaces IDP_RemFromGroup(), IDP_FreeProperty(), MEM_freeN().

6 years agofix [#37100] Segfault when I rotate an edge
Campbell Barton [Wed, 16 Oct 2013 05:24:55 +0000 (05:24 +0000)]
fix [#37100] Segfault when I rotate an edge

6 years agostyle cleanup
Campbell Barton [Wed, 16 Oct 2013 04:08:20 +0000 (04:08 +0000)]
style cleanup

6 years agobeautify: passing edge/face flags as arguments
Dalai Felinto [Wed, 16 Oct 2013 03:24:50 +0000 (03:24 +0000)]
beautify: passing edge/face flags as arguments
no functional change, just preparing the ground for the beautify in
triangulate modifier changes.

6 years agosplit operators/bmo_beautify.c into tools/bmesh_beautify.c
Dalai Felinto [Wed, 16 Oct 2013 03:24:38 +0000 (03:24 +0000)]
split operators/bmo_beautify.c into tools/bmesh_beautify.c

This is a proper design if we want to use the beautify routine elsewhere
(e.g., in the triangulate modifier)

6 years agofix [#37013] Mesh > bisect can't fill the cut if it lines up with two or more adjacen...
Campbell Barton [Wed, 16 Oct 2013 03:21:55 +0000 (03:21 +0000)]
fix [#37013] Mesh > bisect can't fill the cut if it lines up with two or more adjacent vertices

6 years agoFix part of #37087, brush curve becomes inverted when using the reset
Antony Riakiotakis [Wed, 16 Oct 2013 01:49:11 +0000 (01:49 +0000)]
Fix part of #37087, brush curve becomes inverted when using the reset
curve button.

From the bug report it also seems that positive slope curve presets are
not always reset correctly. However I haven't seen any place where
positive slope curve presets are used. This will fix the initial brush
problem, however it might be good to investigate further if curve
presets are to be used elsewhere. It looks like the issue is related to
bezier curve calculation.

6 years agoedits to r60777 - move ED_object_hook_reset_do into BKE object (if RNA needs to call...
Campbell Barton [Tue, 15 Oct 2013 20:15:45 +0000 (20:15 +0000)]
edits to r60777 - move ED_object_hook_reset_do into BKE object (if RNA needs to call ED_* functions its a hint they might be better in BKE).

6 years agoadd 'Extrude Region, Vertex Normal' to the extrude menu, equivalent of 'Extrude,...
Campbell Barton [Tue, 15 Oct 2013 18:30:49 +0000 (18:30 +0000)]
add 'Extrude Region, Vertex Normal' to the extrude menu, equivalent of 'Extrude, Escape, Alt+S'

6 years agoFix stubs for player
Jens Verwiebe [Tue, 15 Oct 2013 17:19:02 +0000 (17:19 +0000)]
Fix stubs for player

6 years agoFix #37090: Blender crashes on "Make single user" option
Sergey Sharybin [Tue, 15 Oct 2013 17:11:15 +0000 (17:11 +0000)]
Fix #37090: Blender crashes on "Make single user" option

issue was caused by id->mewid pointing to an invalid memory
after file load.

The rule here: all the tools need to reset it to NULL (or
other value they need) in the beginning.

Currently some tools are doing newid clear in the beginning
and some does it in the end. We need to clean it up so clear
only happens in the beginning.

But ideal we need some kind NewIDContext to make duplication
safe for threading.

6 years ago3D view: textured draw mode now has a Shadeless option in the Shading panel,
Brecht Van Lommel [Tue, 15 Oct 2013 15:56:00 +0000 (15:56 +0000)]
3D view: textured draw mode now has a Shadeless option in the Shading panel,
to draw textures without shading. For Cycles this was not possible yet, and
for Blender Internal you had to move away all lights which was also not ideal.

(Caminandes feature request)

6 years agorenaming "Beautify Fill" to "Beautify Faces"
Dalai Felinto [Tue, 15 Oct 2013 15:34:14 +0000 (15:34 +0000)]
renaming "Beautify Fill" to "Beautify Faces"

changing the ot->name only, not the ot->idname
(to avoid breaking scripts)

The tool requires the selection to be fill previously,
the original name was confusing if we consider we have
"Fill" with the "Beauty" option.

Discussed with Bastien Montagne and Brecht van Lommel.

6 years agoCode cleanup: move function prototype to header file
Sergey Sharybin [Tue, 15 Oct 2013 15:21:44 +0000 (15:21 +0000)]
Code cleanup: move function prototype to header file

6 years agoGet rid of Allow Fallback option
Sergey Sharybin [Tue, 15 Oct 2013 15:21:41 +0000 (15:21 +0000)]
Get rid of Allow Fallback option

It was rather confusing from the user usage point
of view and didn't get so much improvement after
new bundle adjuster was added.

In the future we might want to switch resection
to PPnP algorithm, which could also might be a
nice alternative to fallback option.

6 years agoCode cleanup: move hardcoded structure to a typedef
Sergey Sharybin [Tue, 15 Oct 2013 15:21:33 +0000 (15:21 +0000)]
Code cleanup: move hardcoded structure to a typedef

6 years agoCode cleanup: use bools instead of ints for tracking utility functions
Sergey Sharybin [Tue, 15 Oct 2013 15:21:28 +0000 (15:21 +0000)]
Code cleanup: use bools instead of ints for tracking utility functions

6 years agoFix [#37085] Hook modifier work when created with Ctrl+H, but not when created via...
Bastien Montagne [Tue, 15 Oct 2013 14:54:12 +0000 (14:54 +0000)]
Fix [#37085] Hook modifier work when created with Ctrl+H, but not when created via modifier panel

"transform matrix" of the hook was not inited (reset) when assinging and object to it, now use same code for both OBJECT_OT_hook_reset operator and RNA object assignement.

Reviewed by Brecht, thanks.

6 years agoremoving PSD from the fileformat list fix [#37080] The file which I stored in PSD...
Dalai Felinto [Tue, 15 Oct 2013 14:32:33 +0000 (14:32 +0000)]
removing PSD from the fileformat list fix [#37080] The file which I stored in PSD file format in Blender cannot open by Photoshop
PSD writing is not supported at the moment

6 years agoFix [#37077] User prefs > Input and Outliner Keymaps mismatch in representation.
Bastien Montagne [Tue, 15 Oct 2013 13:55:06 +0000 (13:55 +0000)]
Fix [#37077] User prefs > Input and Outliner Keymaps mismatch in representation.

Remove KeyMap mode from outliner, was an old half-finished features redondant with user preferences settings...

Also moved key map item's "event type to map type" and map type defines at WM level, this is too much generic to be at RNA level.

Also added a check in versionning code to convert all outdated outliner modes to a valid one (seems old 'verse' ones were not handled as well).

Thanks to Brecht for reviews and advices!

6 years agoFinal fix for #36905. Enforce redraw of window once before sampling.
Antony Riakiotakis [Tue, 15 Oct 2013 13:45:27 +0000 (13:45 +0000)]
Final fix for #36905. Enforce redraw of window once before sampling.
Thanks to Brecht for the solution!

6 years agoFix duplicated key in ghash assert caused by object orco
Sergey Sharybin [Tue, 15 Oct 2013 09:08:08 +0000 (09:08 +0000)]
Fix duplicated key in ghash assert caused by object orco

Code was rather confusing, get_object_orco was only
checking for orco in cache for some objects and was
actually allocating orco for other objects.

Now made it so get_object_orco always only checks
the cache and only call set_object_orco if there's
no orco for it yet.

6 years agofix [#37082] Texture paint artefact
Campbell Barton [Tue, 15 Oct 2013 08:44:13 +0000 (08:44 +0000)]
fix [#37082] Texture paint artefact

6 years agoStyle cleanup (defines -> enums, bit flags values as bitshifts, etc.).
Bastien Montagne [Tue, 15 Oct 2013 08:05:57 +0000 (08:05 +0000)]
Style cleanup (defines -> enums, bit flags values as bitshifts, etc.).

6 years agocode cleanup: project paint, use mod_i() to simplift wrapping, use booleans for stati...
Campbell Barton [Tue, 15 Oct 2013 07:35:12 +0000 (07:35 +0000)]
code cleanup: project paint, use mod_i() to simplift wrapping, use booleans for static function returns.

6 years agocode cleanup: use booleans for projection paint and make some args const.
Campbell Barton [Tue, 15 Oct 2013 07:18:23 +0000 (07:18 +0000)]
code cleanup: use booleans for projection paint and make some args const.

6 years agosphinx docgen wasn't including example scripts for python methods of RNA types.
Campbell Barton [Tue, 15 Oct 2013 05:55:51 +0000 (05:55 +0000)]
sphinx docgen wasn't including example scripts for python methods of RNA types.

6 years agofix [#37067] Bone Crash
Campbell Barton [Tue, 15 Oct 2013 02:23:28 +0000 (02:23 +0000)]
fix [#37067] Bone Crash

Holding Ctrl+RMB is supposed to select objects, while in editmode,
however it would end up calling editmode selection as well as pose selection while an armature was in editmode (which caused the crash).

Add the ability for view3d_opengl_select() to skip editmode selection.

6 years agofix [#37078] Search props don't react on click at the right end (where 'X' is if...
Campbell Barton [Tue, 15 Oct 2013 00:24:53 +0000 (00:24 +0000)]
fix [#37078] Search props don't react on click at the right end (where 'X' is if field not empty)

6 years agoA follow-up to Bug #37070: LineStyle appears in Outliner by default though Freestyle...
Tamito Kajiyama [Mon, 14 Oct 2013 23:08:45 +0000 (23:08 +0000)]
A follow-up to Bug #37070: LineStyle appears in Outliner by default though Freestyle is not enabled.
Line style data blocks are shown in the outliner only when the Blender Internal is used.

6 years agoRename "Show Python Tooltips" to "Python Tooltips"
Jonathan Williamson [Mon, 14 Oct 2013 21:41:03 +0000 (21:41 +0000)]
Rename "Show Python Tooltips" to "Python Tooltips"

This makes the naming more consistent with other options, such as "Tooltips" and "Object Info"

6 years agoAdded poll function to disable "Remove Shape key from object".
Jonathan Williamson [Mon, 14 Oct 2013 21:03:18 +0000 (21:03 +0000)]
Added poll function to disable "Remove Shape key from object".

This disables the "-" button when no shape keys exist on the currently selected object. Thanks to Campbell for the help on my first real commit!

6 years agoFix particle group use count option losing objects for linked groups. There
Brecht Van Lommel [Mon, 14 Oct 2013 20:13:40 +0000 (20:13 +0000)]
Fix particle group use count option losing objects for linked groups. There
was no reason to go through newlibadr here, go->ob should already have the
right pointer.

6 years agoFix for #37070: LineStyle appears in Outliner by default though Freestyle is not...
Tamito Kajiyama [Mon, 14 Oct 2013 19:57:16 +0000 (19:57 +0000)]
Fix for #37070: LineStyle appears in Outliner by default though Freestyle is not enabled.

6 years agofix [#37072] Crash on RMB click on bone's custom property
Campbell Barton [Mon, 14 Oct 2013 19:53:28 +0000 (19:53 +0000)]
fix [#37072] Crash on RMB click on bone's custom property

6 years agoFix Brush datablock writing MTex blocks to .blend files twice.
Brecht Van Lommel [Mon, 14 Oct 2013 19:37:15 +0000 (19:37 +0000)]
Fix Brush datablock writing MTex blocks to .blend files twice.
Patch by Janis Streib.

6 years agoFix cycles textured draw mode problem with objects that have an image texture
Brecht Van Lommel [Mon, 14 Oct 2013 19:37:12 +0000 (19:37 +0000)]
Fix cycles textured draw mode problem with objects that have an image texture
but not UV coordinates, it would show a different color with the object selected
and deselected.

6 years agoUV editor: remove duplicate Select Split entry from UV menu.
Brecht Van Lommel [Mon, 14 Oct 2013 19:36:47 +0000 (19:36 +0000)]
UV editor: remove duplicate Select Split entry from UV menu.

6 years agoInterface / Text:
Thomas Dinges [Mon, 14 Oct 2013 17:14:43 +0000 (17:14 +0000)]
Interface / Text:
* Add "Open" operator to the Text Editor header, it's a common operation next to New.
* Add Body Text property to the Font panel for Text objects, so text can easily be pasted into Blender and editing it becomes easier too. This was only accessible via the RNA Data blocks before.