Commit Graph

3891 Commits

Author SHA1 Message Date
Joshua Leung
cdc7d0b85f Grease Pencil Todos: "Sketching Sessions"
Due to popular request and usability considerations, this commit
reintroduces functionality similar to 2.4's "Draw Mode" for Grease
Pencil.

In the toolbar under the Draw/Line/Eraser buttons, you can find the
"Use Sketching Sessions" toggle, which enables this feature. This is a
per-scene setting, and defaults to off, so that the current 2.5
behaviour is still the default (i.e. the Grease Pencil operator will
only do a single stroke at a time).

With this option enabled, drawing with Grease Pencil will enter a
semi-modal state where you can draw multiple strokes without needing
to keep holding the DKEY throughout (though you'll still need to do so
to start the strokes, unless you use some toolbar buttons), while
still being able to manipulate the viewport. Header help-text prints
show the appropriate keybindings (i.e. press ESCKEY or ENTER to end
the sketching session).

Notes:
- To aid maintainability of the 3D-View toolbar code, I've taken the
liberty to factor out the groups of widgets which commonly occur in
most of the toolbars into separate functions (namely "Repeat" and
"Grease Pencil"). Perhaps it might make it slightly harder to newbies
to the toolbar code to grasp, though the physics panels are far worse
;)
- I've reshuffled some code in the Grease Pencil code to separate out
the various states of operation again more clearly, though some more
work is still needed there (TODO)
- There can now be only one Grease Pencil operator running at a time
- Redoing Grease Pencil operations where sketching sessions was
enabled still needs work. Namely, a way of delimiting the set of
points recorded into strokes is still needed (TODO)
- Ultimately, it should be possible to switch tools midway through a
session. Currently sessions are limited to only being able to be used
with a single drawing mode (TODO)
- After ending a drawing session, the titlebar contols may not work on
Windows without manually making the main window lose focus and then
regain (i.e. click on some other window in toolbar, then come back).
This may be related to (bug #25480)
2011-01-04 03:14:01 +00:00
Ton Roosendaal
3f0210ca1d User pref button for 'drag threshold' 2011-01-03 17:01:08 +00:00
Campbell Barton
e86a489327 Ported back import BVH as Empties, uses delta transformations.
& small pep8 changes.
2011-01-03 16:22:30 +00:00
Campbell Barton
a41ec761fd rename layout.red_alert to alert, may be themeable some day. 2011-01-03 13:33:07 +00:00
Campbell Barton
35422ac536 rna/api
move Object.update(...) to ID.update(). since depsgraph update function can now be called on ID types.

also changed how update flags work.

  obj.update(scene, 1, 1, 1)
... is now
  obj.update({'OBJECT', 'DATA', 'TIME'})

Don't pass scene anymore. This was used for recalculating text but I think this is better dont in a different function.
2011-01-03 09:09:30 +00:00
Campbell Barton
dacdfbe6f3 recent change to keyframe menu broke BVH import, now don't use the operator at all, instead assign the action manually.
Also added bpy.path.display_name_from_filepath(), since filepaths are not ensured to be utf8.
same as calling:  os.path.splitext(os.path.basename(name))[0].encode("utf8", "replace").decode("utf8")
2011-01-03 08:28:22 +00:00
Campbell Barton
1306a38133 fix for own error in recent commit. 2011-01-03 07:07:18 +00:00
Joshua Leung
6feddb8b61 Constraints UI Tweak:
Experimental tweak for the "Object Constraints" tab so that it now
shows a warning message instead of the "Add Constraints" button when
the active object is in Pose Mode. Hopefully this will further
alleviate any confusion over Object vs Bone level constraints.

Todo:
While coding this, I noticed that we currently don't have any way of
making help-text labels in UI panels which can span multiple lines
(word-wrapped or manually split). Probably not a critical issue, but
it would be nice for completeness...
2011-01-02 23:50:16 +00:00
Campbell Barton
a7ceeafd71 - correct typos in comments.
- move boxpack struct out of the public header.
2011-01-02 11:06:50 +00:00
Campbell Barton
f101e59e09 python api: rna array slices now return tuples rather then lists (fits with recent change made to mathutils).
minor improvements/cleanup to exporters.
2011-01-02 09:54:44 +00:00
Janne Karhu
a6a2512f47 Pointcache code cleanup and disk cache compression options:
* Massive reorganization of pointcache code, things are now cleaner than ever.
* For all but smoke the cache is first written to memory when using disk cache and after that written to disk in one operation. This allows less disk operations and the possibility to compress the data before writing it to disk.
* Previously only smoke cache could be compressed, now the same options exist for other physics types too (when using disk cache). For now the default compression option is still "no compression", but if there aren't any problems this can be set to "light compression" as it's actually faster than no compression in most cases since there's less data to write to the disk. Based on quick tests heavy compression can reduce the file size down to 1/3rd of the original size, but is really slow compared to other options, so it should be used only if file size is critical!
* The pointcache code wasn't really 64bit compatible (for disk cache) until now, so this update should fix some crashes on 64bit builds too. Now all integer data that's saved to disk uses 32 bit unsigned integers, so simulations done on 64bit should load fine on 32bit machines and vice versa. (Important disk cache simulations made on 64bit builds should be converted to memory cache in a revision before this commit).
* There are also the beginnings of extradata handling code in pointcache in anticipation of adding the dynamic springs for particle fluids (the springs need to be stored as extradata into point cache).
* Particles were being read from the cache with a slightly wrong framerate. In most cases this probably wasn't noticeable, but none the less the code is now correct in every way.
* Small other fixes here and there & some cosmetic changes to cache panel, but over all there should be no functional changes other than the new disk cache compression options.
* This whole re-organization also seems to fix bug #25436 and hopefully shouldn't introduce any new ones!
2011-01-02 06:52:47 +00:00
Campbell Barton
d5820f0dd0 bugreport & fix [#25441] Copy Transforms Constraint head/tail fixin'
from Dan Eicher (dna)
2011-01-02 04:16:19 +00:00
Campbell Barton
129b6190ed geometry module
- rename functions from camel case.
- added docs for undocumented methods.
- minor functional changes with exceptions and accepting 3d/4d vectors where it makes no difference.

Renamed:
 - geometry.Intersect -> intersect_ray_tri
 - geometry.ClosestPointOnLine -> intersect_point_line
 - geometry.PointInTriangle2D -> intersect_point_tri_2d
 - geometry.PointInQuad2D -> intersect_point_quad_2d
 - geometry.LineIntersect -> intersect_line_line
 - geometry.LineIntersect2D -> intersect_line_line_2d
 - geometry.BezierInterp -> interpolate_bezier
 - geometry.TriangleArea -> area_tri
 - geometry.QuadNormal, TriangleNormal -> normal
 - geometry.PolyFill -> tesselate_polygon
 - geometry.BoxPack2D -> box_pack_2d
 - geometry.BarycentricTransform -> barycentric_transform
2011-01-02 02:11:38 +00:00
Campbell Barton
7040c89af0 BVH Importing native order eulers was broken, simplify conversion between rotation orders. 2011-01-01 13:20:35 +00:00
Campbell Barton
e1f6dc5f73 bvh export
- write compatible eulers (no jumping as eulers change).
- write FPS.
- correct poll function incase bvh export is called without an armature.
2011-01-01 10:38:28 +00:00
Campbell Barton
f932371d1e added bvh export operator & menu item, now user accessible. 2011-01-01 09:44:13 +00:00
Campbell Barton
631745ab9b bvh export now works correctly with matrix multiplications and rad -> deg. 2011-01-01 08:57:09 +00:00
Campbell Barton
e98559fc12 pep8 cleanup 2011-01-01 08:44:17 +00:00
Campbell Barton
48921a4fa1 initial 2.5x port, still need to fix up matrix multiplication orders. 2011-01-01 08:35:38 +00:00
Campbell Barton
a1b1ac5781 committing 2.4x bvh exporter, updating to 2.5x. 2011-01-01 07:26:02 +00:00
Campbell Barton
7f3fe8a2df pep8 cleanup 2011-01-01 07:20:34 +00:00
Peter Schlaile
2840e7b764 == Sequencer ==
Made anim_start / anim_endofs editable again within UI.
2010-12-31 22:44:17 +00:00
Campbell Barton
c68e3913ed fix [#25429] Armature modifier and inverted vertex group
- the invert flag was only being used for multi-modifier, but there is no reason not to use this in normal cases as well.
- Armature modifier RNA name 'vertex_group' was incorrectly named 'vertex_group_multi_modifier' (own fault), confusion was caused by 'invert_vertex_group_multi_modifier' which was correct.
2010-12-31 11:51:00 +00:00
Joshua Leung
dfffad69a9 Bugfix [#25420] Sequencer View Zoom operator hidden
"Numpad 1" shortcut to set preview view zoom to 1:1 (i.e. 100%) did
not exist in View menu. While investigating this, I found that the
operator was missing a description/tooltip, so added one too.
2010-12-31 03:54:28 +00:00
Thomas Dinges
f09d7912f8 Porting URL fixes for Release Logs from Tag to Trunk. 2010-12-30 13:02:48 +00:00
Campbell Barton
9733e5f76f revert part of Tons commit r33884.
- rather then use unlink="None", just don't pass unlink as a keyword. This is more pythonic.
- added an RNA flag for properties which cant be unlinked by setting to None.
2010-12-30 12:22:28 +00:00
Thomas Dinges
e68a9ab95f Some small cosmetic fixes for readme.html. If it still gets into release, fine, otherwise no problem. 2010-12-30 11:35:56 +00:00
Guillermo S. Romero
02038dcf57 SVN maintenance. 2010-12-29 19:50:08 +00:00
Ton Roosendaal
4f7f820092 Part two of 2.56 beta, VERSION for make and splash itself.
(prvicon png was already commited as datatoc)
2010-12-29 19:05:58 +00:00
Martin Poirier
a15f65776f netrender
Bugfix for job cancellation (reported by Carsten in email)
Ended up recoding part of the communication pipe (use json more consistently)
Fix bpy data modifications where it shouldn't happen (as a bonus, thumbnailing is now done out of process)
2010-12-29 18:34:43 +00:00
Joshua Leung
46891eec31 TimeLine UI:
Reshuffling order of "sync" and "Auto-Keying" buttons so that they are
grouped more appropriately. Hopefully this isn't too much of a muscle-
memory breaker...
2010-12-28 11:52:35 +00:00
Joshua Leung
7484d5b743 - Typo fixes
- Visual Location Keying Set was still using the old-style flag
defines
2010-12-28 11:50:10 +00:00
Martin Poirier
39919c7856 netrender
adjust dependency calculations for cache files of smoke simulations (no more separate paths for low and high). That was changed a while ago in the api, just didn't update yet.
2010-12-27 19:48:45 +00:00
Martin Poirier
595525067e [#25210] Netrender failed and produce ghost slaves
Error when prefixing relative path (probably copy paste error)
2010-12-27 18:53:34 +00:00
Nathan Letwory
b9a6331781 By default install to the user profile instead of Program Files. This because right now the installer
runs in user mode, not elevated to admin. Otherwise users can't install to the default which used to
be Program Files, which causes more problems than necessary. Although unconventional location, probably
currently a better solution.

Network admins etc. can override install location on command-line. NSIS docs tell how.
2010-12-27 12:42:51 +00:00
Nathan Letwory
bf1eff43cf Run installer with user level permission by default. 2010-12-27 12:20:56 +00:00
Thomas Dinges
56453a4361 Fix for own commit 24156:
Normal Map bool and the normal_space menu are only used for material based textures, not for textures used by lamp/world etc. Accidentally ported this over from 2.49, where these buttons are drawn even they don't work in that context.
2010-12-27 12:12:43 +00:00
Ton Roosendaal
b61adec1fd Bugfix #25365
Property buttons: the "ID template" allowed to unlink data from object,
like Mesh or Curve etc, which is not supported. Button now is hidden.
Thanks Dan Eicher for patch.

Also: improved tooltip for 'data browse'. It was generic, now it gives
specific per-type information.
2010-12-24 10:15:57 +00:00
Campbell Barton
4d0c10d5ca presets for operators, re-using same preset system as render, cloth etc use.
- operators need to enable the option OPTYPE_PRESET or 'PRESET' in python.
- hidden properties are not written.
- currently this only works in the file selector (enabled for FBX/OBJ export)
- currently the menu label doesnt change when presets are selected, this is a TODO, not so simple since the UI is defined in C and the label in python.
- presets save in "scripts/presets/operators/*id*/*.py"
2010-12-24 07:46:40 +00:00
Campbell Barton
80e85c10be bugfix [#25364] Export to X3D generates objects with black color
was dividing color by 255 when it was already from 0-1.
also use slicing for getting tuples from vectors & colors.
2010-12-24 04:27:21 +00:00
Campbell Barton
577437488e use slicing for exporters for some speedup, no functional change.
3ds also uses non tuple __slots__ and had unused default values for some classes.
2010-12-24 04:24:33 +00:00
Campbell Barton
ce36f9a189 fix for exporting OBJ, materials when no world was set. also use slicing to get tuples. 2010-12-24 04:21:05 +00:00
Campbell Barton
b1d3854095 Make FBX export respect use_deform bone option 2010-12-23 09:42:00 +00:00
Campbell Barton
194c23db0d fix [#25353] X3D Export generates AttributeError: 'NoneType' object has no attribute 'texture' 2010-12-22 23:16:45 +00:00
Campbell Barton
54343b79e6 remove reload() from builtins since python3 no longer uses this.
use imp.reload now.

Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.
2010-12-22 21:39:48 +00:00
Luca Bonavita
009eb42c0e == text editor templates ==
- adding template of a add_object addon from Florian Meyer (testscreenings)
- this template is using the new add_utils module in bf-extensions (also from Florian)
2010-12-22 18:43:21 +00:00
M.G. Kishalmi
3d58d17442 hide the play-reversed button if using JACK + A/V sync
(jack doesn't support reversed playback)

hey team, I'm the new guy.
proud to be on board! =)
2010-12-22 11:37:56 +00:00
Campbell Barton
088f35787f bugfix [#25252] X3D Export does not specify ImageTexture to go with provided TextureCoordinate data
x3d material support is primitive but at least export first image texture found, similar to how texface is treated at the moment.
2010-12-22 10:44:31 +00:00
Campbell Barton
97d8e8bf42 bugfix [#25332] X3D export fails to export complete file 2010-12-22 00:30:22 +00:00
Janne Karhu
803bf8326d Better info text for particle edit
* Response to [#25314] Baked Particles point cache can not be editing in Particle Mode if Disk Cache option is enabled.
2010-12-21 20:25:37 +00:00