Commit Graph

47594 Commits

Author SHA1 Message Date
Campbell Barton
957604f895 functions to make a string representation of a property & assignment. 2012-12-18 14:11:19 +00:00
Brecht Van Lommel
2a657345c7 Fix #33600: copying objects with point caches did not copy the external,
disk cache and lib path settings.
2012-12-18 14:05:54 +00:00
Ton Roosendaal
9c90cf3ca4 Nicer function for drawing text in 3d window:
ED_region_visible_rect(ar, rect)
Returns the visible rect inside a region, subtracting the overlapping UI regions.

Added with minimal overhead, only called once per region draw.

Also fixes the 'Auto Key' warning print in 3d window (was behind properties)
2012-12-18 13:59:47 +00:00
Campbell Barton
db14a81e04 some speedup by avoiding translation on entire enum arrays, and just translate the single name that ends up being used. 2012-12-18 13:46:37 +00:00
Campbell Barton
8e382fde57 fix for include and use break statement (may as well not loop more then needed). 2012-12-18 13:25:23 +00:00
Campbell Barton
b9d03811d5 add index argument to RNA_property_as_string() - currently unused. 2012-12-18 13:21:32 +00:00
Brecht Van Lommel
1d9271cdd7 Fix #33599: VBO textured draw mode did not update correctly when an image filepath
was changed to an invalid one. Also fixed Object Color not being displayed correctly
with VBO's.

The way it has to clear the VBO buffers here is quite poor though and slow, we
really need textures and materials in the depsgraph to do this quicker.
2012-12-18 12:42:13 +00:00
Ton Roosendaal
6030b08caf Bug fix, IRC collection. (Fix for recent commit)
On saving new files (after loading startup.blend), the user prefs were included.
G.fileflags again...
2012-12-18 12:14:14 +00:00
Campbell Barton
9046c292f8 fix [#33598] Regression in 2.65 while opening a 2.64 file
VBO's were using a material limit half the size of the rest of blender.
2012-12-18 11:17:20 +00:00
Campbell Barton
f8c42024fa Correction for own commit r53006, removed some ndof keymaps, bad! 2012-12-18 10:57:46 +00:00
Campbell Barton
e364c94c7b fix [#33580] Masking keyframes disappear from dope sheet when using undo. 2012-12-18 08:41:38 +00:00
Campbell Barton
2c0bceb1f5 fix for own error in recent commit with active pose mode, depended on an uninitialized flag. 2012-12-18 07:38:02 +00:00
Campbell Barton
a82397561e add support for active-element in pose mode and armature editmode.
This works most usefully when combined with Normal orientation.
2012-12-18 06:36:35 +00:00
Campbell Barton
40a667e2ff code cleanup 2012-12-18 05:38:21 +00:00
Campbell Barton
dd68223c72 fix [#33575] Manipulator showing incorrect local axes in armature pose mode. 2012-12-18 05:29:56 +00:00
Campbell Barton
e72239c6a4 style cleanup 2012-12-18 01:52:18 +00:00
Campbell Barton
899ba3fdb6 style cleanup 2012-12-18 01:46:15 +00:00
Tamito Kajiyama
10f0f66560 Another big code clean-up patch by Bastien Montagne (GPL headers, indentation,
spaces around operators, and so forth).  Many thanks!
2012-12-18 00:51:25 +00:00
Tamito Kajiyama
62751e0da0 Made Freestyle Edge/Face Marks accessible from Python. 2012-12-18 00:07:25 +00:00
Brecht Van Lommel
779375251c Fix #33487: game engine did not convert objects with rotation modes other than
Euler XYZ correctly, was never implemented;
2012-12-17 21:40:28 +00:00
Brecht Van Lommel
593ae2c8f4 Fix #33505: various issues
* Motion blur with shutter time > 1 did result in the correct evaluation
  of some modifiers because it set the subframe to values > 1, and some
  places assume the current frame to be set to the integer coordinate and
  the subframe to be a value between 0 and 1.
* Shape keys did not take subframe time offsets into account.
* Point density texture was using an current frame value that was never set.
2012-12-17 20:37:10 +00:00
Bastien Montagne
b481ec92e4 Minor tweaks to some UI messages... 2012-12-17 20:16:37 +00:00
Antony Riakiotakis
738c482101 uv edge based stitch. Useful to disambiguate betwen islands
when uvs are shared by more than two islands. Uv edges
 usually belong to only two islands, making for much cleaner
 stitches. To change between stitch modes, press TAB.
 Initial mode depends on the selection mode of the image
 editor. Documentation can also be found on the release wiki
2012-12-17 20:14:07 +00:00
Bastien Montagne
83b03b8dfd Fix [#33590] The Screw Tool in Edit Mode isn't calculating the correct angle step divisions per turn.
Degrees were used as radians... :p
Also tweaked min values of steps and turns!
2012-12-17 19:26:09 +00:00
Ton Roosendaal
b60671c962 Object Layer property now has tag "not animatable".
Even with new depsgraph that'll be a big problem to support.
For as long layers define relationships or define evaluation
this should remain a static state.

Instead, animate outliner "visibility".
2012-12-17 18:45:13 +00:00
Ton Roosendaal
60e35be2d4 UI fixes:
- on setting lower DPI, the regions that were scrolled down would start moving down
  1 pixel on every draw. Caused by rounding error. (int + 0.1 vs int -0.1)
  (Ancient bug)

- circles used in outliner - to denote selection/active - now draw bigger, and better
  centered. (2.66 fix only)
2012-12-17 17:37:48 +00:00
Campbell Barton
c9f0e29f3c fix [#33581] Vertex Color Layer
vertex colors were added to meshes with no faces whenver exiting/entering editmode, while in vertex paint mode outside of editmode. *(making a really big list of vertex colors!)
2012-12-17 15:17:51 +00:00
Campbell Barton
1fe6d543a5 fix/workaround [#33493] checker de-select and edge loops
Checker de-select by default would give uneven selection on a circle, this isnt really a bug but the offset used would give unevenly spaced selection even if the 3rd vertex for eg could be evenly selected on a circle.

Change how the offset works so the active element always remains selected when the offset is set to zero, this tends to give more even de-selection.
2012-12-17 15:02:26 +00:00
Ton Roosendaal
95225cf110 Bug fix, IRC report.
With 2 windows, 2 scenes, linked objects:
- enter editmode in 1 window.
- the other window allowed to enter editmode too.
- and crash happened on exit editmode.

Since editmode is in Context (scene->obedit) a bad conflict arises.

New function BKE_object_is_in_editmode() returns this info outside of
context. Note I didn't use BMEdit_FromObject() because of the assert().

NOTE: contextual storage of editmode could need rework... five places:
- ob->mode / ob->restore_mode
- scene->object
- CTX_data_edit_object()
- BKE_object_is_in_editmode()
- view3d mode handling menu
2012-12-17 14:51:06 +00:00
Ton Roosendaal
bf51b85871 Version patch for reading old files (2.50 and before).
In 2.50 a new convention was added to save the filename in the .blend itself. 
This to allow recovery of temp saves.

In current svn, it made old files open as if it was a saved home file (not
storing the name in header, or in file history).

Note: file handling for all recovery, remapping etc is in need for cleanup.
2012-12-17 12:35:39 +00:00
Ton Roosendaal
b61958c80d Bugfix 33560
Setup: 2 windows, 2 scenes, shared objects and groups.

Errors:
- editing in 1 window, didn't correctly update shared stuff in the other
  (like child - parent relations)
- deleting group members in 1 scene, could crash the other.

Fixes:
- On load, only a depsgraph was created for the "active" scene. Now it makes
  depsgraphs for all visible scenes.
- "DAG ID flushes" were only working on active scenes too, they now take
  the other visible into account as well.
- Delete object - notifier was only sent to the active scene.

All in all it's a real depsgraph fix (for once!) :) Using multi-window and
multi-scene setups now is more useful.
2012-12-17 12:03:31 +00:00
Campbell Barton
734b4f60c1 missed adding show_grease_pencil to node space in recent commit 2012-12-17 09:17:21 +00:00
Ton Roosendaal
359b683e1e Small tweak for using transparent+overlapping regions:
On mouse-over these regions now become active always (as if they were opaque).
This active state is used by many tools, or for drawing cursors.

Currently, all events (if not handled by button region) are passed on anyway to
the underlying region.

Visible errors were for example drawing the paint brush circle.
2012-12-17 09:02:43 +00:00
Sergey Sharybin
8a4ba61786 Fix part #33534: Building proxies will remove strip animation 2012-12-17 08:45:44 +00:00
Bastien Montagne
ab2c273b12 Added GPL header to sconscripts!
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...
2012-12-17 08:01:43 +00:00
Campbell Barton
c92dd5fa40 bpy/rna api: add support for classmethods.
So RNA can expose functions from the type, eg:
  bpy.types.Objects.some_function()
2012-12-17 06:58:19 +00:00
Campbell Barton
18cb2d208c code cleanup: use 'const float *' when getting the 3d cursor and not editing it. 2012-12-17 05:38:50 +00:00
Campbell Barton
9ac713bdb5 missed this recent commit, while drawing grease pencil, draw if 'Render Only' is on. 2012-12-17 05:36:00 +00:00
Campbell Barton
fe006c0426 don't draw the sequencer grease pencil panel when in the channel view or scopes.
also don't draw grease pencil over scopes.
2012-12-17 04:44:39 +00:00
Campbell Barton
519378fca6 patch [#33441] Remove unneeded strcpy()'s from makesdna.c 2012-12-17 02:46:30 +00:00
Campbell Barton
f9ec10688a fix [#33501] Grease pencil in OpenGL render
With the view3d 'Render Only' option, grease pencil wouldn't draw, but for OpenGL render it did.

Since grease pencil can be very useful in opengl renders, enable grease pencil drawing with 'Render Only' option in the viewport,
and add a checkbox in the grease pencil header not to draw (unchecking each layer is annoying and applies to all spaces).
2012-12-17 02:34:53 +00:00
Campbell Barton
bc0e1211de fix [#33551] End Caps on a curve array with subsurf crashes blender when entering Edit Mode
DM_to_bmesh_ex could merge a 'dm' into an existing BMesh, in that case CD_ORIGINDEX values needed to be set to ORIGINDEX_NONE.
2012-12-17 00:39:03 +00:00
Howard Trickey
f596cb2721 Fix knife cut-through bug #33571.
The code to connect across a face didn't stop after it found one.
2012-12-17 00:31:59 +00:00
Miika Hamalainen
c5e46863a2 Fix [#33565]: Dynamic Paint modifier surfaces not copied
Dynamic Paint canvas surfaces were not copied with modifier.
2012-12-16 19:19:45 +00:00
Ton Roosendaal
7b5784e37c Test print in bugfix... 2012-12-16 14:50:50 +00:00
Campbell Barton
9a2290cf5f fix for bevel using the wrong property name when shift was held. 2012-12-16 14:22:48 +00:00
Ton Roosendaal
7965b6995e Bug fix 33563
Region sizex/sizey should store the actual used sizes, for hide/reveal.
Didn't happen correctly, resulting in opening button regions of size 1.
2012-12-16 14:19:29 +00:00
Campbell Barton
54787a8855 fix own error [#33529] Bevel on a certain edgeloop results in segmentation fault
relied on edges having a loop, now use overlap apiflag instead.
2012-12-16 14:17:15 +00:00
Ton Roosendaal
0514299331 Bugfix #33458
Tooltips in Blender were not scaling when zooming in/out on UI elements.
(They did follow DPI though, but tooltips were in a 'global' fixed size).

Error was that for tooltips on large scaled popups (like in Node editor)
the drawing was entirely wrong even.

Now tooltips scale correctly, also for fonts.
2012-12-16 13:31:56 +00:00
Brecht Van Lommel
a0855a95db Cycles: add "Textures" panel in particle properties, to make it possble to add
textures when Cycles is selected as render engine.
2012-12-16 12:55:52 +00:00