Commit Graph

27677 Commits

Author SHA1 Message Date
Mitchell Stokes
a9f8083551 Adding overhead drawing (frame rate, profile, debug props) capabilities back to the Blenderplayer by replacing commented out BMF_* functions with BLF_* equivalents. 2011-01-05 01:34:33 +00:00
Joshua Leung
09852b9a58 Animation data for lattices is now shown in the Animaton Editors 2011-01-05 00:37:21 +00:00
Dalai Felinto
95dcf11a88 BGE: Font Object support to animated (object) colors
implemented the support for animated colors and a workaround for non animated colors. To be cleaned if/when this bug is fixed:
[#25487] BGE: Object Color only works when it has a keyed frame

* also increased the size of the text. Now it supports 280 (or 140 unicode) chars.
2011-01-04 21:27:44 +00:00
Ton Roosendaal
b9cda80cbb Note sure if this file is used still... named it 2.56a 2011-01-04 17:53:02 +00:00
Ton Roosendaal
8279d66cdc Fixed readme.html only went to the tag branch, now in trunk. 2011-01-04 17:49:43 +00:00
Ton Roosendaal
90a4e6a93d Don't commit with compiling first ;) 2011-01-04 16:39:05 +00:00
Ton Roosendaal
51a3d123e1 Todo item: notifiers sent from Material changes invoked Compositor
jobs. Now proper checks have been added, also for texture nodes.
2011-01-04 16:31:36 +00:00
Campbell Barton
231f3a4e2e fix [#25388] Export to X3D generates texture fields in X3D file for objects
use vertex color paint setting to export vertex colors when a material is assigned.
2011-01-04 15:25:12 +00:00
Ton Roosendaal
a952de66b0 todo item:
Files saved with image-window composite preview panel still
rendered cropped, but theres no way to disable it. Now it
ignores cropping.
2011-01-04 15:19:16 +00:00
Ton Roosendaal
5db20b512e Todo item:
New option to start threaded wmJobs, with flag WM_JOB_SUSPEND.
This makes the job wait 1 timer step before running. 

Used now for Material Icon render renders, which makes the
big preview to be always rendered first while using UI.
2011-01-04 14:59:55 +00:00
Sergey Sharybin
becca813d7 Crease tool brush missed brush color changing depends on brush appearance. 2011-01-04 14:55:29 +00:00
Sergey Sharybin
df29715498 Fix #25483: Brush appearance color
Set special brush flag when inversion stroke was started, not wery nice, but
we can't make better with current events system implementation.
2011-01-04 14:46:29 +00:00
Ton Roosendaal
8b1bfbcfea Todo items:
- File Window: when opened with operator (save, load, etc), you 
  couldn't start a new one, causing memleaks. Now it nicely 
  refreshes file window for new operator.
  Also means you can make CTRL+F3 screenies of filewindow now.
- CTRL+F3 screenshot had memleak on cancel.
2011-01-04 14:37:21 +00:00
Ton Roosendaal
c2bc82c9fc Bugfix #25486
MedtaBall editmode, 3D window, menu "Select" had an error, unknown
operator for select/deselect. Fix provided by Jonathan Smith
2011-01-04 13:10:46 +00:00
Campbell Barton
221187bcbd comment assert and ensure meshes are always calculated with CD_MASK_BAREMESH, scene->customdata_mask should be corrected in background mode but for now this is ok. 2011-01-04 12:31:42 +00:00
Campbell Barton
1704a5546d fix for makesrna error on windows where files cant be removed when open. 2011-01-04 10:37:22 +00:00
Campbell Barton
f4cebea207 print a message if the file cant be removed, may help narrow down why there are problems with MSVC at the moment. 2011-01-04 10:28:37 +00:00
Campbell Barton
9cafe19c70 - use BKE_keyingset_free_path where paths were being freed inline.
- rna_path was being freed when null, printing errors.
2011-01-04 08:56:25 +00:00
Campbell Barton
a735629fd1 no need to define betz in editcurve.c, replace ob_get_key with inline check for anim filter code. 2011-01-04 08:00:16 +00:00
Mitchell Stokes
f71ff8639c Fix to make two-side texface option work with modifiers in the BGE. However, there appear to be some issues when a mesh has mixed two-side and non two-side faces. I think it's a problem in the converter and possibly related to this bug: https://projects.blender.org/tracker/index.php?func=detail&aid=24948&group_id=9&atid=306 2011-01-04 07:43:32 +00:00
Sergey Sharybin
34fe2cd733 Fixed malicious selection checking in make segment operator.
Thanks to Campbell and CLang :)
2011-01-04 07:32:26 +00:00
Joshua Leung
72735b104d Fixing Grease Pencil typo noted while scanning through Mike Erwin's
GSoC10 work. Cheers Mike for catching this!

Also removing the use of sqrt() as noted in a "todo" comment there...
2011-01-04 06:28:44 +00:00
Joshua Leung
f3c8e4ddff No functional changes. Just formatting cleanups for now... 2011-01-04 06:18:58 +00:00
Joshua Leung
f228899e49 Grease Pencil: Redo for sketching sessions now works 2011-01-04 05:57:05 +00:00
Xavier Thomas
a2d055af14 Fix bug #25471 2011-01-04 04:56:27 +00:00
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
Sergey Sharybin
5226155369 Memory for bevelSplitFlag wasn't duplicated in copy_displist.
Also corrected memory allocation comment for this array.
2011-01-03 19:45:08 +00:00
Ton Roosendaal
5eaad696e8 Bugfix, own collection
Graph editor: sliding Nkey Properties to left, closing curves view
entirely, was hanging in eternal loop. Caused by division by zero.
2011-01-03 18:57:13 +00:00
Campbell Barton
6b82aa8d01 fix for crash when some classes didnt register properly (this included loading sintel.blend). 2011-01-03 18:15:15 +00:00
Ton Roosendaal
9297cb01f6 Todo item:
2D view scrollers were drawing over background contents, making it
look somewhat messy (like for text, nodes, fcurves). Now it clears
first the back in the region edge.
2011-01-03 18:14:10 +00:00
Ton Roosendaal
3902eca8ca Image window Scopes (P key): the 4th "line histogram" was not
initialized on 100 pixels height on creation.
2011-01-03 17:37:37 +00:00
Ton Roosendaal
3f0210ca1d User pref button for 'drag threshold' 2011-01-03 17:01:08 +00:00
Ton Roosendaal
be5f30416b Todo item
Drag/drop now has a User preset for dragging threshold.
Noticed this was set to 3 pixels even, made it 5 as default.
Tablet owners can put it larger too :)

Note: the tweak-threshold (3d win) is 10 pixels now, I think
this needs another preset too, leave this for now.

Also: fixed crash in filewindow: drag .blend icon and drop it.
You can't test anything in Blender or you get a bug :)
2011-01-03 17:00:49 +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
Ton Roosendaal
2ad8175597 Todo: Material nodes
- On each re-render, the node image was cleared. Skipping this gives
  nicer pictures
- Node render was using AA, but unfortunately only 1 sample for Nodes
  is being stored. Disable AA render for now, nice speedup too.
2011-01-03 15:50:08 +00:00
Ton Roosendaal
9676902006 Todo items:
- New Node editor now opens with larger view, the default
  was like zoomed in factor 2.
- Add node via menu now shows new node more visible
- Click on (material) node now doesn't re-render the entire
  tree anymore, much nicer.
- Duplicate node creates preview image immediate
2011-01-03 14:36:44 +00:00
Campbell Barton
6ae84f96e0 fix for linking on msvc with own recent changes. 2011-01-03 14:30:59 +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
72e8a0c552 check modifier keys are not pressed when using keys as accelerators, it meant you couldn't copy the operator from a menu with Ctrl+C because C would be used to activate an item. 2011-01-03 13:13:54 +00:00
Ton Roosendaal
8a2a7687f4 Bugfix #25457
After loading file, the Undo-push happened too early, causing an
undo for the first action to show animated setups wrong.

(material.c: removed old crap)
2011-01-03 12:48:16 +00:00
Campbell Barton
486c3cd937 DAG_id_tag_update was being called with non object ID's and OB_RECALC_* flags which only apply to objects. harmless but misleading. 2011-01-03 12:41:16 +00:00
Ton Roosendaal
16fdbd8552 Bugfix #25471
Scopes widgets in Image Editor (Pkey) could be dragged to zero size.
Now limit is 20. Thanks Mario Kishalmi for patch!
2011-01-03 12:13:48 +00:00
Campbell Barton
33a5a69d25 fix for own error with mathutils.geometry argument parsing.
also raise ValueError when the vector size is incorrect rather then type error.
2011-01-03 12:11:05 +00:00
Joshua Leung
f7857ec81b 2.4x <-> 2.5 Regression Fixes: Shapekey Problems
This commit partially fixes the problems with Shapekeys from older
files, as seen from the Regression suite (relative.blend and
dolphin.blend in particular).

In older files, keyblock->slidermax was never truly set to 1.0 even
though the UI may have shown such a value (which was bizzarely being
sourced from somewhere else). Hence, after loading the files in 2.5,
the shapekeys wouldn't animate, as the value would get clamped between
0 and 0.

To fix this, I've added a version patch which corrects these
situations in old files, and I've adjusted the slider-RNA code so that
it is not possible to set up such clamping anymore.

TODO:
The fixes detailed here only make it possible for these files to work
again in 2.5. However, I haven't been able to find a way to get the
files to actually work in 2.5 without manually changing the active
shapekey (per object) after loading the files with these patches
applied. Possibly it's just some depsgraph magic needed, unless
there's still some other evil voodoo in the shapekey code
2011-01-03 11:58:19 +00:00
Campbell Barton
e7ed8a3be0 fix for [#25470] single property driver vars don't update 2011-01-03 11:50:10 +00:00
Ton Roosendaal
7d1fce5533 Bugfix #25449
Adding surface objects via top menu crashed for option
"view aligned". Bad context checking.
2011-01-03 10:47:36 +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
e6d1f25842 remove rna func scene.collada_export(), export functions dont exist for any other formats, calling operators should suffice. 2011-01-03 07:42:30 +00:00
Campbell Barton
1306a38133 fix for own error in recent commit. 2011-01-03 07:07:18 +00:00