Commit Graph

18936 Commits

Author SHA1 Message Date
Benoit Bolsee
af85ee01f8 Update MSVC project files. 2009-08-28 13:42:58 +00:00
Joshua Leung
c15db042cc Grease Pencil: WIP Code Reordering + Context Stuff
* Shuffled some code around, and renamed some functions used for getting context info
- Split UI-buttons into a separate file from stroke-drawing code
- Removed some obsolete code (i.e. old paint code that used to be in _edit, but which has been moved to _paint). 

* Made drawing in 3D-View default to using the active object as the owner of the Grease Pencil data. For now, the drawing code will therefore only show the GP data for the active object only. More work to come on this.

* Fixed freeing code for Objects/Scenes with GP data.
2009-08-28 12:41:45 +00:00
Joerg Mueller
d7656684e2 Quick fix for scons (untested though :/). 2009-08-28 12:38:59 +00:00
Joerg Mueller
6a8020b9c6 First try in sound UI for the sequencer. 2009-08-28 12:27:29 +00:00
Joerg Mueller
3ac11df33b First try of sound operators, untested. 2009-08-28 11:13:45 +00:00
Joerg Mueller
8794951d9f A python port of dataoc. 2009-08-28 09:38:36 +00:00
Matt Ebb
208f6daa1d * Tweak texture paint view3d settings, make projection paint options dependent on the tool, rather than (weirdly) the tool's availability dependent on projection paint settings. 2009-08-28 02:24:14 +00:00
Guillermo S. Romero
9c66deb47a SVN maintenance. 2009-08-27 20:37:50 +00:00
Thomas Dinges
590950a0fa 2.5:
* Deleted the box layout in logic editor, as discussed in IRC. We need a better solution here, maybe 2 lines?

* Typo in Sequencer RNA.
2009-08-27 19:10:53 +00:00
Thomas Dinges
9c1cf53e9a 2.5 Volumetric:
* Wrapped some missing Point Density RNA and added the options to the UI.
* Some UI changes (greying out...)

Matt: Please check. :)
2009-08-27 18:24:12 +00:00
Campbell Barton
28392eedbe was casting the PyObjectPlus type to a PyObject for new BGE vector and matrix types, need to get its proxy instead. 2009-08-27 16:34:13 +00:00
Campbell Barton
2c7065e541 - assigning vectors in the BGE wasn't updating the vector from the callback
- Pkey only starts in BGE in Object Mode
- warning in readblenentry.c, is silent on 64bit too.
2009-08-27 15:22:41 +00:00
Joerg Mueller
12a0f2c098 Fix for sounds with relative paths not being loaded correctly. 2009-08-27 09:52:41 +00:00
William Reynish
55f82852ca Tweaked layout of game properties. The Add button is now at the top, meaning it doesn't move around - this is also more consistent with constraints/modifiers etc. Used the same 'box' layout as constraints/modifiers.
Also ported some name changes from the materials UI script to RNA to keep these consistent. Animation editors always show the RNA name after all, so it's good to keep the names similar.
2009-08-27 08:46:39 +00:00
Joshua Leung
fe46d5ba7a Grease Pencil: RNA Wrapping
* Wrapped Grease Pencil datatypes in RNA.
* Hooked up Grease Pencil access in RNA (i.e. via Main, ID, and Scene)

TODO:
Updates to properties are currently lacking property-update calls, since there's no good notifier for this.
2009-08-27 06:03:41 +00:00
Joshua Leung
7994ff39b8 Grease Pencil: Another quick experiment - easier usage
* Changed the hotkey to simply be:
Hold DKEY, click+drag using Left-Mouse (draw) or Right-Mouse (erase). How to get tablet erasers to work (via keymaps) is on todo...
You can simply hold DKEY until you've finished drawing, thanks to the nice way that keymaps can support standard-key modifiers now.

* Eraser works now too.
2009-08-27 01:57:09 +00:00
Joshua Leung
65b7d58fa2 Grease Pencil: Bugfixes
* Realtime updates now work again
* Fixed problems with clicks to start drawing resulting in a stroke being ended.
* Changed the hotkeys to Ctrl-Alt-Shift-LMB (draw) and Ctrl-Alt-Shift-RMB (erase). Still very temporary stuff, will probably change these a few more times as I experiment with new approaches.
2009-08-27 01:01:13 +00:00
Campbell Barton
a3bc7f3d1d BGE shape key actuator working, though only tried a simple testcase. 2009-08-26 20:06:16 +00:00
Guillermo S. Romero
ae8dcde0e2 SVN maintenance. 2009-08-26 19:30:02 +00:00
Joerg Mueller
c30f54e326 2.5 Sound: RNA for bSound. 2009-08-26 18:20:17 +00:00
Diego Borghetti
1e50c17f91 Update makefile for libed_gpencil. 2009-08-26 17:13:20 +00:00
Thomas Dinges
6badfa5836 2.5 Scene RNA:
* Added RNA for Render Baking. 
Missing: Bake Operator and property "Quad Split Order".
2009-08-26 15:13:58 +00:00
Joerg Mueller
47ce314bc5 2.5 Sound:
- Cleaned up DNA_sound_types.h, especially the bSound structure.
- Fixed a caching bug.
2009-08-26 14:19:29 +00:00
Campbell Barton
c97d964064 - Add remove game properties now possible from the logic space properties panel.
- PyDebugLine, utility function to run if the BGE crashes, you can see which python file and line called the C/C++ code.
2009-08-26 12:51:27 +00:00
Joshua Leung
043ad7bc8e 2.5 - Grease Pencil Version 2 (Crude rebirth)
This commit is the start of the new Grease Pencil implementation. I've just ported the old code to make it work with operators, and to store its data in Grease-Pencil datablocks.

However, this is currently still really buggy, with only the barebones of the drawing/creation tools restored (no UI panels, no options). To use (not recommended), use D+S+move_mouse (and click when finished) for now. There are some rather serious event handling errors going on here...
2009-08-26 12:01:15 +00:00
Joerg Mueller
adcb21b1f4 Close the old audio device before and not after opening the new. 2009-08-26 10:02:17 +00:00
Joerg Mueller
36b85d4508 Changed default audio device from SDL to OpenAL after a discussion in IRC, we're testing if OpenAL works flawlessly on all plattforms and if so we'll keep it as default device as it supports 3D Audio for the GE what SDL doesn't. 2009-08-26 08:09:29 +00:00
Campbell Barton
7abb8c4bde this was causing failed build when the file was missing 2009-08-26 07:59:58 +00:00
Matt Ebb
740752da12 * Hopefully fix some weird merging business 2009-08-26 06:51:26 +00:00
Matt Ebb
163d0bb811 * Fix for yesterday's valgrind fix
* Fix for plane material preview render. Now, light cache aborts if there isn't enough volume, and falls back on non-cached single scattering. It still doesn't make much sense to render a plane as a volume, but for now in the preview it will shade the region in between the plane and the checker background.
2009-08-26 06:17:39 +00:00
Campbell Barton
4342235489 - Mathutils.Vector assignment wasnt working in the BGE's py api, was using getValue() rather than setValue()
- added GPL header to bpy_interface.c from 2.4x's BPY_interface.c
- warning fixes
2009-08-26 06:15:43 +00:00
Martin Poirier
d893b0f9ff Clear transform flag on all bones that are not transformed. 2009-08-26 02:18:47 +00:00
Martin Poirier
833afdd9e7 Map manipulator to leftmouse, not actionmouse.
We don't want this to flip around when people change left or right mouse select.
2009-08-26 01:49:57 +00:00
Joshua Leung
4893cdc338 2.5 - Warning cleanups (for mingw+scons)
Also, made the Outliner's horizontal scrollbar work better for keymaps view. It's still using an approximation of the width, but at least you can scroll now.
2009-08-26 00:38:43 +00:00
Daniel Genrich
3f5a2a1194 Smoke:
*Bugfix for crash on using a plane as smoke domain (reported by DingTo)
* Bringing slowly high res back, not yet working
2009-08-25 23:39:49 +00:00
Guillermo S. Romero
c4a1c8fbeb Unconditionally define WITH_OPENEXR.
Compiling openexr_api.cpp requires WITH_OPENEXR, to get the right part of the
openexr_multi.h file. Broken since r22739.
2009-08-25 22:56:08 +00:00
Campbell Barton
0a23895f95 remove all python api functions deprecated in 2.49 2009-08-25 22:51:18 +00:00
Daniel Genrich
6a5773d4a8 Smoke:
* Deleting high res modifier again
* fixing smoke + continue physics drawing
* fixing cache reset when changing dissolve
2009-08-25 21:53:52 +00:00
Diego Borghetti
cfcd355c27 Update Makefile and missing include on voxeldata.c
Note that With libsndfile also need libflac and libogg here (Linux), right
now I just add this two librarys to the NAN_SNDFILELIBS, but maybe
it's better split this ? (NAN_FLAC/NAN_OGG)
2009-08-25 21:25:41 +00:00
Joerg Mueller
91cd6fe2c4 libsndfile is not available yet for darwin, builders feel free to add the lib! 2009-08-25 20:42:21 +00:00
Daniel Genrich
37144b8178 Smoke:
* reset cache when changing heat or gravity
2009-08-25 20:22:40 +00:00
Daniel Genrich
0e9f7757b9 Pointcache:
*forgot 1 rename
2009-08-25 19:58:42 +00:00
Daniel Genrich
e2d91a5e5f Pointcache:
* change function names
2009-08-25 18:53:20 +00:00
Daniel Genrich
1d1e8595f2 Pointcache:
*introducing unique ID's following brechts hint from ML

Enhancements resulting from this:
* multiple caches per modifier stack position
2009-08-25 18:41:36 +00:00
Andrea Weikert
0ff90bb258 blender 2.5 MSVC projectfiles
* update for bpy_array.c
2009-08-25 17:32:01 +00:00
Arystanbek Dyussenov
706a4c22b5 Implemented dynamic and multidimensional array support in RNA.
Example code: http://www.pasteall.org/7332/c.
New API functions: http://www.pasteall.org/7330/c.

Maximum number of dimensions is currently limited to 3, but can be increased arbitrarily if needed.

What this means for ID property access:

* MeshFace.verts - dynamic array, size 3 or 4 depending on MFace.v4
* MeshTextureFace.uv - dynamic, 2-dimensional array, size depends on MFace.v4
* Object.matrix - 2-dimensional array

What this means for functions:

* more intuitive API possibility, for example:
  Mesh.add_vertices([(x, y, z), (x, y, z), ...])
  Mesh.add_faces([(1, 2, 3), (4, 5, 6), ...])

Python part is not complete yet, e.g. it is possible to:

MeshFace.verts = (1, 2, 3) # even if Mesh.verts is (1, 2, 3, 4) and vice-versa
MeshTextureFace.uv = [(0.0, 0.0)] * 4 # only if a corresponding MFace is a quad

but the following won't work:

MeshTextureFace.uv[3] = (0.0, 0.0) # setting uv[3] modifies MTFace.uv[1][0] instead of MTFace.uv[3]
2009-08-25 17:06:36 +00:00
Andrea Weikert
7288bacad9 blender 2.5 MSVC projectfiles
* update for volume rendering
* update for audaspace jack
* update for rna: animation_api.c, scene_api.c
2009-08-25 17:05:04 +00:00
Joerg Mueller
4ba6dbce76 Replaced G.sce by Main.name in sound.c.
I hoped for it to resolve the bug of loading sounds with relative paths didn't work, but Main.name isn't set before the sounds are loaded, so the bug resists!
Someone who is into file loading should please fix this!
2009-08-25 15:30:04 +00:00
Thomas Dinges
3d7215da58 2.5 Material Buttons:
* Fixed some poll checks, they showed empty panels when there was no active material.
* Some minor code/whitespace cleanup.
2009-08-25 14:26:27 +00:00
Campbell Barton
9521fa9456 remove gameOb.has_key(key) method from KX_GameObject and ListValue since python 3.x removes has_key from dictionaries.
Instead use __contains__, eg.
 if key in gameOb: ...
 
Mathutils returns from PyMath.cpp were incorrectly using wrapped Mathutils types. Wrapped types should only be used with a callback now.
2009-08-25 13:54:56 +00:00