blender.git
8 years agofix [#26448] Solidify Modifier makes mesh texture missing in OpenGL render
Campbell Barton [Fri, 11 Mar 2011 05:23:56 +0000 (05:23 +0000)]
fix [#26448] Solidify Modifier makes mesh texture missing in OpenGL render

8 years agoBugfix [#26167] Animating inside group nodes behaves strangely
Joshua Leung [Fri, 11 Mar 2011 03:27:38 +0000 (03:27 +0000)]
Bugfix [#26167] Animating inside group nodes behaves strangely

One node update call (for nodes within group nodetrees) was using the
wrong nodetree (node-editor's nodetree, not the group) which meant
that the wrong RNA context for such nodes would get used, resulting in
errors when trying to keyframe such nodes.

Hopefully this is the last time I have to fix these bugs...

8 years agoFix a typo in defines. Patch by Alexander Kuznetsov
Nathan Letwory [Fri, 11 Mar 2011 02:58:37 +0000 (02:58 +0000)]
Fix a typo in defines. Patch by Alexander Kuznetsov

The typo resulted in bad keyboard input handling in MinGW builds.

8 years agobugfix [#26454] WITH_PYTHON_SAFETY crash.
Campbell Barton [Fri, 11 Mar 2011 02:43:30 +0000 (02:43 +0000)]
bugfix [#26454] WITH_PYTHON_SAFETY crash.

8 years agoBetter progress info for physics baking:
Janne Karhu [Fri, 11 Mar 2011 02:00:05 +0000 (02:00 +0000)]
Better progress info for physics baking:
* Using the job system for physics baking is not yet in the near future, so here's some good old console based progress info to all point cache based physics baking.
* The info contains current total bake time, baking time for the current frame, and a simple estimate of completion time.
* The info is only shown if the estimated total time for the bake is higher than one minute, so quick bakes don't suffer any performance hits due to console printing.

8 years agowhen checking for windows check sys.platform starts with "win" rather then '== "win32...
Campbell Barton [Fri, 11 Mar 2011 01:24:16 +0000 (01:24 +0000)]
when checking for windows check sys.platform starts with "win" rather then '== "win32"' & avoid importing platform.
also add some notes to CMake options.

8 years agosimplify BLI_path_abs by using BLI_cleanup_path
Campbell Barton [Fri, 11 Mar 2011 01:06:16 +0000 (01:06 +0000)]
simplify BLI_path_abs by using BLI_cleanup_path

8 years agofix [#26451] Little problem when selecting relative output path
Campbell Barton [Fri, 11 Mar 2011 00:30:51 +0000 (00:30 +0000)]
fix [#26451] Little problem when selecting relative output path
BLI_path_rel() no longer strips trailing slashes.

8 years agoBugfix [#26438] : While grabing a marker with G, cancelling with Esc
Joshua Leung [Fri, 11 Mar 2011 00:18:10 +0000 (00:18 +0000)]
Bugfix [#26438] : While grabing a marker with G, cancelling with Esc
does exit cancelling the translation (as expected), while RMB doesn't,
it works same as LMB

This should fix the remaining issues with marker tweak-grab mappings
(hardcoded for right-mouse for now)

8 years agofix [#26452] Problem with key properties when OnlySelectedCurveKeyframes option enabled.
Campbell Barton [Thu, 10 Mar 2011 23:55:22 +0000 (23:55 +0000)]
fix [#26452] Problem with key properties when OnlySelectedCurveKeyframes option enabled.

8 years agoBugfix [#26438]: Hotkey conflict between add meta-strip and add marker
Joshua Leung [Thu, 10 Mar 2011 23:26:59 +0000 (23:26 +0000)]
Bugfix [#26438]: Hotkey conflict between add meta-strip and add marker

The sequencer made it's own copy of the Markers keymap, which was
inconsistent with the rest of Blender, making things confusing to use.
I've removed these duplicate keymap entries, and also changed the
conflicting hotkeys for Metastrips.

Metastrips now use the same hotkeys that their NLA cousins use:
Shift-G to add, Alt-G to remove; These were chosen since in user-
terms, metastrips are more like "strip groups"

8 years agofix [#26436] Operator.draw(): UI redraw; UI trimmed
Campbell Barton [Thu, 10 Mar 2011 22:22:47 +0000 (22:22 +0000)]
fix [#26436] Operator.draw(): UI redraw; UI trimmed

8 years agoFix [#26446] Quick extrude (Ctrl+LMB) works only one time
Nathan Letwory [Thu, 10 Mar 2011 18:56:19 +0000 (18:56 +0000)]
Fix [#26446] Quick extrude (Ctrl+LMB) works only one time
Reported by Michael R

This was one thing I didn't test when accepting patch [#26364]. It is important to not
send repeats of modifier keys.

8 years agoBugfix #26443
Ton Roosendaal [Thu, 10 Mar 2011 18:17:20 +0000 (18:17 +0000)]
Bugfix #26443

Node compositor crash:
When you very quickly unlink a socket *right* after connecting it
(within 0.1 second), the compositor started with a noodle without
valid connections, which was not foreseen to happen.

8 years agoBugfix #26424
Ton Roosendaal [Thu, 10 Mar 2011 17:34:27 +0000 (17:34 +0000)]
Bugfix #26424

More problems with Undo and Render Slots (Image editor)

- Undo storage for operator is now back, but only when new
  buffers were added (not when viewing existing)

- A real bug: On undo/redo, the stored buffers were never
  retrieved, but always freed entirely.

Note however that when you undo back to a state before you
rendered (or added slots), the render buffers that didn't
exist back then also get freed. A redo doesn't bring it back.

8 years agoTodo:
Ton Roosendaal [Thu, 10 Mar 2011 16:36:16 +0000 (16:36 +0000)]
Todo:

Fixed name and tooltip for new "render output" option. It does draw output,
but just doesn't change your UI layout.

8 years agofix [#26442] blender crash when turning off antialiasing fonts
Campbell Barton [Thu, 10 Mar 2011 13:49:46 +0000 (13:49 +0000)]
fix [#26442] blender crash when turning off antialiasing fonts
ASCII lookup table wasn't being freed when when the rest of the glyphs were.

Also found own bug where mesh stat text was using wrong sized array (char[3] as char[4]).

8 years agoBugfix #26442
Ton Roosendaal [Thu, 10 Mar 2011 12:52:18 +0000 (12:52 +0000)]
Bugfix #26442

Very bad crashing in using "Not AA fonts" and drawing length info
on EditMesh. This uses the call BLF_draw_ascii() which apparently
corruptes then badly. Disabled the call for now, and wait for fix.

In the course of testing, added proper strlen storage for draw
in this code.

Added strlen

8 years agoFix for [#26441] Child Hair Crash
Janne Karhu [Thu, 10 Mar 2011 12:36:11 +0000 (12:36 +0000)]
Fix for [#26441] Child Hair Crash
* Silly mistakes in my last particle distribution code commit.

8 years agoBugfix irc report:
Ton Roosendaal [Thu, 10 Mar 2011 11:47:36 +0000 (11:47 +0000)]
Bugfix irc report:

With draw method "Overlap", the preview line for menu "Split area" was not
correctly visible.

8 years agoBugfix #26437
Ton Roosendaal [Thu, 10 Mar 2011 11:11:26 +0000 (11:11 +0000)]
Bugfix #26437

- Tooltip-hanging fix made the 'active' button be removed when mouse
  enters another subwindow. Caused by commit of a week ago.

- Reverted the eventsystem change that sets 'active subwindow' before
  it calls modal handlers. This made editors become active on using
  menus, buttons, or other modal ops.

  Side effect is that for transform operators called via toolbar, the
  overlay-extra draw with helplines now gets skipped. Will check on
  good ways for it.

8 years agofix [#26406] Projection Paint, Occlussion Problem with Intersections in perspective...
Campbell Barton [Thu, 10 Mar 2011 08:51:41 +0000 (08:51 +0000)]
fix [#26406] Projection Paint, Occlussion Problem with Intersections in perspective mode.

8 years agoalso enable edge-seam unwrapping when running the mark_seam operator.
Campbell Barton [Thu, 10 Mar 2011 06:06:55 +0000 (06:06 +0000)]
also enable edge-seam unwrapping when running the mark_seam operator.

8 years agorequest from Jedrzej Slewczuk's:
Campbell Barton [Thu, 10 Mar 2011 05:52:16 +0000 (05:52 +0000)]
request from Jedrzej Slewczuk's:
 Option for tagging creases (Ctrl+RMB) to also re-unwrap the mesh.
 In 2.42 this could be done by setting rt==8 (very hidden), now its a little less hidden (in the toolbar).

8 years agorevert r35438, Martin doesn't like having this option tacked on.
Campbell Barton [Thu, 10 Mar 2011 00:38:23 +0000 (00:38 +0000)]
revert r35438, Martin doesn't like having this option tacked on.

8 years agoCMake should find python now without manual options being set on linux.
Campbell Barton [Thu, 10 Mar 2011 00:25:35 +0000 (00:25 +0000)]
CMake should find python now without manual options being set on linux.

cmake on *nix detects python ABI flags for debug and release mode.
searches /usr /usr/local /opt/py32

8 years agoFix small error in chdir + cmd combination.
Nathan Letwory [Thu, 10 Mar 2011 00:21:36 +0000 (00:21 +0000)]
Fix small error in chdir + cmd combination.

8 years agountarring of Python 3.2 tarballs would fail if CMake was installed into path with...
Nathan Letwory [Thu, 10 Mar 2011 00:12:06 +0000 (00:12 +0000)]
untarring of Python 3.2 tarballs would fail if CMake was installed into path with spaces. Slightly
change how the extraction commands are presented (old BUILD_TYPE was empty all the time here) and
ensure also that python/lib subdir under versioned dir gets actually created.

8 years agobetter default python ABI flags for *nix, 'm' default, 'd' for debug.
Campbell Barton [Wed, 9 Mar 2011 23:27:26 +0000 (23:27 +0000)]
better default python ABI flags for *nix, 'm' default, 'd' for debug.
give a CMake error if Python.h isn't found.

8 years agoSome small fixes to the install part for windows.
Nathan Letwory [Wed, 9 Mar 2011 22:45:43 +0000 (22:45 +0000)]
Some small fixes to the install part for windows.

8 years agoadd option requested [#25598] projection surface snap issue
Campbell Barton [Wed, 9 Mar 2011 22:45:34 +0000 (22:45 +0000)]
add option requested [#25598] projection surface snap issue

for retopo workflow you don't wan't to project the mesh onto its self, added option not to.

8 years agoApply [#26364] New Windows keyboard handling
Nathan Letwory [Wed, 9 Mar 2011 22:10:51 +0000 (22:10 +0000)]
Apply [#26364] New Windows keyboard handling
Submitted by Alexander Kuznetsov

Fixes [#25279] Shift-Numpad Combinations fail to align view to selected
and addresses [#26328] Blender uses global keyboard message hook which hurts system responsiveness on Windows

A whole new way of handling keyboard input improves greatly both code readability and event handling. Thanks for the great patch, Alexander!

8 years ago- CMake, print message to run 'make install', this is new and should help avoid confu...
Campbell Barton [Wed, 9 Mar 2011 21:19:15 +0000 (21:19 +0000)]
- CMake, print message to run 'make install', this is new and should help avoid confusion: [#26425] SVN release can't find scripts/modules and doesn't start properly
- remove extension from icon to match spec: http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.htm

8 years agoDon't try to copy gnu_gettext.dll when building 64bit Blender - it's linked staticall...
Nathan Letwory [Wed, 9 Mar 2011 20:58:26 +0000 (20:58 +0000)]
Don't try to copy gnu_gettext.dll when building 64bit Blender - it's linked statically on win64.

8 years agoFrom the todo:
Ton Roosendaal [Wed, 9 Mar 2011 18:42:35 +0000 (18:42 +0000)]
From the todo:

Hanging Tooltips solved!

It appeared to be that an active button remained in that state when
another region/editor became active. It then kept the button-activate
state, and therefore also the optional tooltip.

This only happened on fast moves, when a mousemove event was not passed
on anymore to the previously active subwindow.

It has been solved with a new notifier (SWINACTIVE), which gets sent on
new active regions. The screen listener then calls uiFreeActiveButtons()
to find out if buttons were still active somewhere else.

8 years agoFrom the OFTL: Pad-period refreshes File browser.
Ton Roosendaal [Wed, 9 Mar 2011 15:19:53 +0000 (15:19 +0000)]
From the OFTL: Pad-period refreshes File browser.

8 years agoTodo item: defaulting newly created Property editors to vertical.
Ton Roosendaal [Wed, 9 Mar 2011 15:12:33 +0000 (15:12 +0000)]
Todo item: defaulting newly created Property editors to vertical.
(At least until horizontal layouts work acceptable)

8 years agoFix for [#26420] F-Curve key handles affected by NLA strip position
Janne Karhu [Wed, 9 Mar 2011 15:04:09 +0000 (15:04 +0000)]
Fix for [#26420] F-Curve key handles affected by NLA strip position
* NLA timing was only applied to fcurve keys, but not handles, so strange things happened.
* This time tweaking was missed in selections too, so fcurve handles couldn't be selected properly either if the NLA strip was moved from frame 1.

8 years agoFix for [#26372] Objects as PS Hair displays and renders differently
Janne Karhu [Wed, 9 Mar 2011 14:18:33 +0000 (14:18 +0000)]
Fix for [#26372] Objects as PS Hair displays and renders differently
* Grid distribution isn't really suited for hair, so this is now disabled.
* Setting a jittered distribution with particles/face = 1 now creates particles on the center of faces.
* Quite a bit of cleanup of the whole particle distribution code.

8 years agoFix [#26012] Import Collada: instance_node incorrectly handled
Nathan Letwory [Wed, 9 Mar 2011 14:16:21 +0000 (14:16 +0000)]
Fix [#26012] Import Collada: instance_node incorrectly handled
Reported by David Roy

When <instance_node>s where read, their transformation matrix got overwritten with the transform matrix
of their own node, not taking into account the parent node transformation. Instead of doing
that we now get the parent node transformation matrix and apply it to its own, and prevent
caller from overwriting this new transformation matrix.

8 years agoBugfix #26424
Ton Roosendaal [Wed, 9 Mar 2011 13:47:54 +0000 (13:47 +0000)]
Bugfix #26424

Image Editor: Jkey 'swap render slot' should not be in the undo
system.

8 years agomake python UV functions use a popup UI rather then redo UI, they are not fast enough.
Campbell Barton [Wed, 9 Mar 2011 11:01:44 +0000 (11:01 +0000)]
make python UV functions use a popup UI rather then redo UI, they are not fast enough.

8 years agopy/ui: ensure extensions which add draw functions for menus/headers/panels always...
Campbell Barton [Wed, 9 Mar 2011 10:57:56 +0000 (10:57 +0000)]
py/ui: ensure extensions which add draw functions for menus/headers/panels always get the default operator context, not the one that was last set.

8 years agolightmap pack: made into an operator & added to UV calc menu
Campbell Barton [Wed, 9 Mar 2011 10:49:12 +0000 (10:49 +0000)]
lightmap pack: made into an operator & added to UV calc menu

8 years agoworking with bpy 2.5x api, convert into operator next.
Campbell Barton [Wed, 9 Mar 2011 08:35:17 +0000 (08:35 +0000)]
working with bpy 2.5x api, convert into operator next.

8 years agoupdate for blender as a py module & python 3.2
Campbell Barton [Wed, 9 Mar 2011 04:58:44 +0000 (04:58 +0000)]
update for blender as a py module & python 3.2

8 years agoupdate for py3.x syntax and mostly pep8 compliant
Campbell Barton [Wed, 9 Mar 2011 04:08:38 +0000 (04:08 +0000)]
update for py3.x syntax and mostly pep8 compliant

8 years agocopy from 2.4x, update to 2.5x next.
Campbell Barton [Wed, 9 Mar 2011 04:01:40 +0000 (04:01 +0000)]
copy from 2.4x, update to 2.5x next.
svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/uvcalc_lightmap.py release/scripts/op/uvcalc_lightmap.py

8 years agomoving to addons & splitting for lazy loading of eps/png/svg
Campbell Barton [Wed, 9 Mar 2011 02:07:44 +0000 (02:07 +0000)]
moving to addons & splitting for lazy loading of eps/png/svg

TODO, add to defaults when startup.blend is updated.

8 years agoadd stddef.h include for offsetof macro for gcc 4.6 compat.
Campbell Barton [Wed, 9 Mar 2011 02:06:21 +0000 (02:06 +0000)]
add stddef.h include for offsetof macro for gcc 4.6 compat.

8 years agoimage.depth, 96/128 for float color images, was 24/32 for byte images.
Campbell Barton [Wed, 9 Mar 2011 01:25:59 +0000 (01:25 +0000)]
image.depth, 96/128 for float color images, was 24/32 for byte images.
also use <> for system includes

8 years agoFix [#26037] Import Collada crashes Blender
Nathan Letwory [Wed, 9 Mar 2011 01:13:28 +0000 (01:13 +0000)]
Fix [#26037] Import Collada crashes Blender
Submitted by David Roy

Multiple nodes can reference the same geometry, and specify the same materials. This lead
to the import code overwriting material mappings of faces in a destructive way. Instead of
just writing the material bindings always we now keep book of what geometry+material mapping
we've already handled.

8 years agoCMake
Campbell Barton [Wed, 9 Mar 2011 00:23:26 +0000 (00:23 +0000)]
CMake
- temp disable installing plugins dir, since its not used for 2.5x
- OSX wasnt getting text copied.

8 years agodisable openexr and collada for mingw, give linking errors.
Campbell Barton [Tue, 8 Mar 2011 23:12:45 +0000 (23:12 +0000)]
disable openexr and collada for mingw, give linking errors.

8 years ago- correct python3.1 warning message.
Campbell Barton [Tue, 8 Mar 2011 22:11:15 +0000 (22:11 +0000)]
- correct python3.1 warning message.
- for new shadow only enum, use humanly readable RNA enum values.
- update cmake unix example for custom python.

8 years agoSkip materials that are invalid.
Nathan Letwory [Tue, 8 Mar 2011 20:41:43 +0000 (20:41 +0000)]
Skip materials that are invalid.

8 years agoApply a small patch from mikktspace author Morten Mikkelsen (cosmetic changes).
Nathan Letwory [Tue, 8 Mar 2011 20:39:32 +0000 (20:39 +0000)]
Apply a small patch from mikktspace author Morten Mikkelsen (cosmetic changes).

8 years agoPrevent memory corruption when using fixed texture and fast strokes with
Sergey Sharybin [Tue, 8 Mar 2011 20:31:45 +0000 (20:31 +0000)]
Prevent memory corruption when using fixed texture and fast strokes with
big spacing. Not sure if it's the best solution or it should be fixed when
calculating new areas.

It'll be cool if somebody else familiar with this area will check this.

8 years agoFix #26408: [texture paint] brush spacing
Sergey Sharybin [Tue, 8 Mar 2011 19:52:35 +0000 (19:52 +0000)]
Fix #26408: [texture paint] brush spacing

Implemented non-spacing strokes (which are making paint step at each
mouse-move event).

8 years agoFix for [#26322] x-mirror gives wrong results while editing hair particles
Janne Karhu [Tue, 8 Mar 2011 16:52:10 +0000 (16:52 +0000)]
Fix for [#26322] x-mirror gives wrong results while editing hair particles
* Tsk! Particle mirroring was working fine for the case where subsurf modifier was before particles (orcos are transformed in this case), but not the other way around (unnecessary inverse transform of orcos).
* Not really satisfied with having to check for the CD_ORIGINDEX layer, so if Brecht or somebody else knows a better way then please change this :)

8 years agoBugfix & Feature fix: Only Shadow Material options
Ton Roosendaal [Tue, 8 Mar 2011 16:08:43 +0000 (16:08 +0000)]
Bugfix & Feature fix: Only Shadow Material options

Patch from Miika Hämäläinen.

The old Material "Only Shadow" used an ancient 'best guess'
formula using Lamp Distance and some averaging for converting
shadow values to alpha.
A couple of bug reporters already complained about the not
very predictable renders. Miika fixed this by adding two
new options, to only give the true shadow factor exclusively,
or to give a result including light intensity values.

More info:
http://projects.blender.org/tracker/index.php?func=detail&aid=26413&group_id=9&atid=127

8 years agoApply [#26383] Triangle fans support for COLLADA importer
Nathan Letwory [Tue, 8 Mar 2011 13:26:41 +0000 (13:26 +0000)]
Apply [#26383] Triangle fans support for COLLADA importer
Submitted by Alexey Zakharov

This patch adds support to Blender for reading geometry data that's
represented as triangle fans.

8 years agoBugfix #25422
Ton Roosendaal [Tue, 8 Mar 2011 13:02:26 +0000 (13:02 +0000)]
Bugfix #25422

In some cases the User Preferences UI was "vibrating" on redraws.
Could only be redone by some, but this fix is confirmed to work.

8 years agoCMake: removed blenderplayer from install target by accident with recent commit.
Campbell Barton [Tue, 8 Mar 2011 09:01:22 +0000 (09:01 +0000)]
CMake: removed blenderplayer from install target by accident with recent commit.

8 years agoApply [#26311] Collada Exporter Crash on Win64 build
Nathan Letwory [Tue, 8 Mar 2011 08:33:52 +0000 (08:33 +0000)]
Apply [#26311] Collada Exporter Crash on Win64 build
Submitted by Filiciss Muhgue

Selecting COLLADA export after starting blender into default scene Blender would crash, due to misreading the path string (no file saved yet, so it was zero).

8 years agofix bug [#26315] Background and 3D view mistakes
Campbell Barton [Tue, 8 Mar 2011 07:44:30 +0000 (07:44 +0000)]
fix bug [#26315] Background and 3D view mistakes
The bug is caused by a fix for [#22111], commits r29356, r28545.

exiting localview would set the rv3d->view but use the original rv3d->viewquat.

8 years agoneeded removing here too
Campbell Barton [Tue, 8 Mar 2011 07:33:26 +0000 (07:33 +0000)]
needed removing here too

8 years agoremove unused RegionView3D retopo pointer and set quat printing to const args.
Campbell Barton [Tue, 8 Mar 2011 07:31:42 +0000 (07:31 +0000)]
remove unused RegionView3D retopo pointer and set quat printing to const args.

8 years agoOld IDProperty bug, (from original commit r8916),
Campbell Barton [Tue, 8 Mar 2011 03:14:59 +0000 (03:14 +0000)]
Old IDProperty bug, (from original commit r8916),
found crash while changing operator string size.

Shrinking arrays never worked right.
rather then "newlen * sizeof(...)", it would memcpy "newlen * oldlen * sizeof(...)" which always goes over the array bounds.

8 years agoui_textedit_delete_selection() could access past the array bounds.
Campbell Barton [Tue, 8 Mar 2011 02:24:29 +0000 (02:24 +0000)]
ui_textedit_delete_selection() could access past the array bounds.

8 years agopy-api utf8/filepaths:
Campbell Barton [Tue, 8 Mar 2011 01:28:10 +0000 (01:28 +0000)]
py-api utf8/filepaths:
in function PyC_UnicodeAsByte(), replace code copied from python with PyUnicode_EncodeFSDefault(), new in py3.2.

8 years agopatch [#26404] UnicodeDecodeError
Campbell Barton [Tue, 8 Mar 2011 01:23:42 +0000 (01:23 +0000)]
patch [#26404] UnicodeDecodeError
from user: perfection cat (sindra1961)

8 years agotemp workaround [#26397] Console error when selecting certain entries in the Help...
Campbell Barton [Tue, 8 Mar 2011 01:03:27 +0000 (01:03 +0000)]
temp workaround [#26397] Console error when selecting certain entries in the Help Menu (Report a Bug)
bug in python 3.2, reported upstream: http://bugs.python.org/issue11432

8 years agoFix keymap operator polling functions to be a bit safer.
Martin Poirier [Mon, 7 Mar 2011 23:53:08 +0000 (23:53 +0000)]
Fix keymap operator polling functions to be a bit safer.

8 years agoCMake/OSX: Bugfix [#26375]: Add default values for the OSX architecture: x86_64 ...
Damien Plisson [Mon, 7 Mar 2011 21:28:36 +0000 (21:28 +0000)]
CMake/OSX: Bugfix [#26375]: Add default values for the OSX architecture: x86_64 (also used to select the python dynlibs that'll be bundled with the application).
Set deployment target to be 10.5 by default.

Fix broken build introduced by recent source/creator/CMakeList.txt cleanup

8 years agoBGE internal cosmetic changes - Replacing hardcoded values with new defines
Dalai Felinto [Mon, 7 Mar 2011 19:14:17 +0000 (19:14 +0000)]
BGE internal cosmetic changes - Replacing hardcoded values with new defines
---------------------------------------------------------------------------
The Rasterizer code was relying in the values defined on TF_ DNA files. I'm working in the recode of TexFace, bringing the options to the material panel and ran into those cases. They are hard to spot and add a lot of the "magic" effect to the code. Hardcoded values are at least easy to spot. We (still) have a few defines duplicated, relying on each other (a flag previously defined in the code is checked later on but using a different define (although with same value. (e.g. TF_BMFONT and RAS_RENDER_3DPOLYGON_TEXT). It's hell =)
I'm adding some comments to help on that.

Things will be revamped anyways, but it's nice to keep the code a bit more coherent before the real feature commit. That's all, thanks for listening.

8 years agoBugfix #26394
Ton Roosendaal [Mon, 7 Mar 2011 18:05:41 +0000 (18:05 +0000)]
Bugfix #26394

Using Marker menu (dopesheet) didn't work, the operators themselves
were checking Y coordinate of event.
Handlers also support boundbox checks. For this case it needed a bit
special handling. But works :)

8 years agoFrom the OFTL:
Ton Roosendaal [Mon, 7 Mar 2011 14:56:19 +0000 (14:56 +0000)]
From the OFTL:

Arrows-move-cursor is back!
It now works for any running modal operator that doesn't handle own
arrow keys. Might need to become more restricted though, some modal
ops don't need it. Want to investigate that still where conflicts are.

8 years agouse set's, since pythons 3.2's optimizer converts these to frozensets, lookups are...
Campbell Barton [Mon, 7 Mar 2011 13:23:45 +0000 (13:23 +0000)]
use set's, since pythons 3.2's optimizer converts these to frozensets, lookups are also faster then tuples (though this isn't a bottleneck).

8 years agoDrop support for python 3.1.
Campbell Barton [Mon, 7 Mar 2011 11:53:40 +0000 (11:53 +0000)]
Drop support for python 3.1.
for building py3.2 on *nix see:
  http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting#Python

also fixed possible buffer overrun with getting the fake filepath for a blender textblock.

8 years agoBugfix #26388
Ton Roosendaal [Mon, 7 Mar 2011 11:51:09 +0000 (11:51 +0000)]
Bugfix #26388

Actually a todo item I forgot:

Material nodes previews now follow the scene "color managenent"
setting.

8 years agoPy/Operators: FBX Exporter setting order was still randomized.
Campbell Barton [Mon, 7 Mar 2011 08:57:35 +0000 (08:57 +0000)]
Py/Operators: FBX Exporter setting order was still randomized.

Some lines removed recently I thought were are needed were there so classes that use mix-ins keep the argument order.

8 years agoPyAPI: allow subclasses of io_utils.ExportHelper to set when the extension is enforced.
Campbell Barton [Mon, 7 Mar 2011 08:01:38 +0000 (08:01 +0000)]
PyAPI: allow subclasses of io_utils.ExportHelper to set when the extension is enforced.

8 years agose BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
Campbell Barton [Mon, 7 Mar 2011 03:57:04 +0000 (03:57 +0000)]
se BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
also on only try build RPM's on linux.

8 years agouse install target for CMake Windows (msvc and mingw), for MinGW you now need to...
Campbell Barton [Mon, 7 Mar 2011 03:33:33 +0000 (03:33 +0000)]
use install target for CMake Windows (msvc and mingw), for MinGW you now need to run 'make install', for MSVC the 'INSTALL' target needs to be enabled in the project file

8 years agoEnsure gpu_extensions.c compiles with MSVC -> include BLI_winstuff.h
Nathan Letwory [Mon, 7 Mar 2011 00:49:21 +0000 (00:49 +0000)]
Ensure gpu_extensions.c compiles with MSVC -> include BLI_winstuff.h

8 years agobug [#26329] Project Paint not working
Campbell Barton [Sun, 6 Mar 2011 23:12:12 +0000 (23:12 +0000)]
bug [#26329] Project Paint not working
we cant ensure that a requested buffer can be allocated so report opengl errors when failing to allocate the buffer (rather then printing to console).

this is common enough and generic error isn't too helpful to users.

8 years agofix [#26368] Solidify breaks EdgeCrease
Campbell Barton [Sun, 6 Mar 2011 22:10:33 +0000 (22:10 +0000)]
fix [#26368] Solidify breaks EdgeCrease

Make edge crease additive rather then overwriting existing values.
There are other problems pointed out in this report but they are unrelated to solidify.

8 years agoFix #26324: proportional editing and armature applied to editing cage during edit...
Sergey Sharybin [Sun, 6 Mar 2011 17:03:25 +0000 (17:03 +0000)]
Fix #26324: proportional editing and armature applied to editing cage during edit mode works strangely

Not sure why proportional editing used to disable crazyspace corrections,
but from that time hwn it was done transform stuff was changed a lot.
I've made several tests (with file from report and sintel from durian
data files) and it worked nice.

8 years agoApplied patch by Alexander Kuznetsov for bug 26373: math node 'round' mode was not...
Lukas Toenne [Sun, 6 Mar 2011 13:11:57 +0000 (13:11 +0000)]
Applied patch by Alexander Kuznetsov for bug 26373: math node 'round' mode was not working correctly for negative numbers.

8 years agoupdate 'make' GNUmakefile stub to run 'make install'
Campbell Barton [Sun, 6 Mar 2011 12:04:59 +0000 (12:04 +0000)]
update 'make' GNUmakefile stub to run 'make install'
update packman and debian for to disable portable install option.

8 years agoCMake: Linux/Unix Only,
Campbell Barton [Sun, 6 Mar 2011 11:41:30 +0000 (11:41 +0000)]
CMake: Linux/Unix Only,
use 'install' target rather then copying files with post-build commands.

Main change is that you need to run 'make install', which copies files to ./bin by default
unless WITH_INSTALL_PORTABLE is OFF, where CMAKE_INSTALL_PREFIX is used for a typical unix-system install.

8 years agouse tar.gz for windows python zipfiles rather then .zip,
Campbell Barton [Sun, 6 Mar 2011 11:18:57 +0000 (11:18 +0000)]
use tar.gz for windows python zipfiles rather then .zip,
since cmake can only extract tar's

8 years agoFinal step for texture nodes/threading issue fix: make needed
Sergey Sharybin [Sat, 5 Mar 2011 17:47:24 +0000 (17:47 +0000)]
Final step for texture nodes/threading issue fix: make needed
initialization on sculpt brush stroke init and free used resources
when stroke is finished.

8 years agoBugfix #26367
Ton Roosendaal [Sat, 5 Mar 2011 17:04:30 +0000 (17:04 +0000)]
Bugfix #26367

Previous fix I did to make texture-node-paint work, accidentally
cleared tags for compositing nodes to be done while editing.

8 years agoBugfix #26317
Ton Roosendaal [Sat, 5 Mar 2011 14:03:29 +0000 (14:03 +0000)]
Bugfix #26317

Dopesheet: shift+d duplicate is now a macro too, allowing a single undo.

8 years agopatch [#26366] More detailed Python error reporting for the BGE
Campbell Barton [Sat, 5 Mar 2011 11:08:22 +0000 (11:08 +0000)]
patch [#26366] More detailed Python error reporting for the BGE
from Alex Fraser (z0r)

    Now object name is shown with python error.

8 years agosculpt undo struct was using an array of char pointers rather then a char array.
Campbell Barton [Sat, 5 Mar 2011 10:37:59 +0000 (10:37 +0000)]
sculpt undo struct was using an array of char pointers rather then a char array.

8 years agouse NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors.
Campbell Barton [Sat, 5 Mar 2011 10:29:10 +0000 (10:29 +0000)]
use NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors.

8 years agoblenderplayer building again in CMake + OSX (and Linux I guess) patch from IRIE Shinsuke
Dalai Felinto [Sat, 5 Mar 2011 09:27:14 +0000 (09:27 +0000)]
blenderplayer building again in CMake + OSX (and Linux I guess) patch from IRIE Shinsuke