Commit Graph

16285 Commits

Author SHA1 Message Date
970c9214b5 * Fixes for shading objects inside volumes 2009-08-30 07:07:02 +00:00
466d59461d * Limit available texture coordinate types when using volume materials 2009-08-30 06:42:53 +00:00
46ba8b6edb Grease Pencil: Hacky fix for "broken strokes" bug (pun intended) ;)
For the strokes drawn using OpenGL lines, moderately-sized changes in the pressure between two points could result in the stroke being disjointed, since a new GL_LINE_STRIP would need to be created with the new line thickness due to the new pressure value. 

(In reference to the summary of this commit, this bug was noticed by Matt Ebb (broken). This bug is also in 2.4x, but was suprisingly not really noticed.)
2009-08-30 06:10:38 +00:00
05ebac71ca Grease Pencil: Bugfix (Dots) + RNA Wrapping
* Making single dots should be possible again.

* Wrapped the debug option, 'Show Points', for layers, which makes all the points on the layer get drawn with dots indicating positions of stroke points.
2009-08-30 05:54:27 +00:00
e104b42929 Grease Pencil: Drawing Improvements
* Smooth strokes can now be drawn again, with normal (i.e. reasonably speedy feedback again). 
Previously slow drawing was caused by a bad notifier being used - the full screen was redrawn each time instead of just the relevant region. Now, only the relevant region is redrawn while drawing, and a proper flush is done for the rest of the screen at the end.

* Made drawing straight lines a proper drawing 'mode' for Grease Pencil now. Use the Ctrl-D-LMB hotkey to draw straight lines in this way. The (buffer) line drawn now will accurately represent the final straight line instead of drawing the freehand path taken as before.
2009-08-30 04:48:34 +00:00
4b206c675c just some comment fixes 2009-08-30 03:10:03 +00:00
2cb6078900 was crashing when joining in-link to in-link for the logic buttons. 2009-08-30 02:09:57 +00:00
75697c40a0 svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22717:22875 2009-08-29 23:41:09 +00:00
c2696ae631 quiet warnings 2009-08-29 23:35:13 +00:00
371c3bcf7a 2.5 Sound: Bugfixes. 2009-08-29 23:13:27 +00:00
530deb73a9 Workarounds for 2 rna bugs.
- mesh face properties that have no data are tested for length.
- the rawtype of MFace.verts is not set, defaulting to CHAR, meaning only verts with 256 verts could be added from python. temp workaround by making PROP_RAW_INT the first in the enum. For some reason makesrna.c doesn't set the raw type MFace.verts at all.
2009-08-29 23:05:46 +00:00
c6ccf5fd2e Cloth didn't update properly in particle mode. Don't understand why the particle mode check was there to begin with, but if removing it causes trouble later on some other solution can be figured out. 2009-08-29 21:52:57 +00:00
7a56228343 2.5 Paint:
* Don't do shared vertex colors for every vpaint dot. Profiling on a large mesh showed vpaint spent about 65% of the time in this function, but most of the time no difference will be apparent in the result. (Could make an operator so the user can force this operation after doing some painting.)

TODO:
Profiling now shows most time spent in drawing the mesh. (This is done twice for vpaint, the first time for finding backbuf sampling.)
2009-08-29 21:51:58 +00:00
5ab556e066 bugfix: on windows, it wouldn't correctly recognize directories and import python modules on load.
BLI_exist vs BLI_exists (fun times were had by all)
2009-08-29 20:29:29 +00:00
a261330d5c 2.5:
Bugfix: Preview-Render didn't update when changing material/texture id block/slot.
2009-08-29 18:02:37 +00:00
47190b2009 Missing null check in particle edit code caused a crash when using search boxes. 2009-08-29 17:25:26 +00:00
c9041b61c5 fix for problem building 2009-08-29 15:46:38 +00:00
874d38eeb4 Point cache editing:
- Baked point caches for particles, cloth and softbody can now be edited in particle mode.
	* This overwrites the old cloth/sb cache editmode editing.
	* The type of editable system is chosen from a menu.
	* For particles the current particle system and it's current cache are used.
- Currently this only works for caches that are in memory, but some automatic conversion from disk to memory and back can be implemented later.
- All tools from hair editing can't be applied to point caches and are hidden in the tool panel and specials menu. Some functionality like subdividing paths can be later implemented in a slightly different way from how it works for hair.
- Code is not yet optimized for speed, so editing might be slow sometimes.

Known issues:
- Cloth doesn't update properly while in particle mode, due to the way cloth modifier currently works. Daniel can you check on this?
- As "particle mode" is not only for particles any more some other name would be in place?
- Better icons are needed for the path, point, and tip-modes as the current icons from mesh edit mode are quite misleading.
- Direct editing of point velocities is not yet implemented, but will be in the future.

Other changes:
- Hair editing doesn't require a "make editable" button press any more.
- Multiple caches in single particle system disables changing emission properties.
- Unified ui code for all point cache panels.
	* Defined in buttons_particle.py and imported for cloth, smoke & softbody.
- Proper disabling of properties in ui after baking point caches. (Daniel could you please make needed disable code for smoke panels as their functionality is not familiar to me.)
- Hair weight brush has been removed. Once hair dynamics is re-implemented I'll code a more useable alternative to the functionality.

Bug fixes:
- Unlinking particle settings crashed.
- Deleting the active object with particles in the scene crashed.
- Softbody didn't write point caches correctly on save.
2009-08-29 15:20:36 +00:00
c03004f93e 2.5: Added some sound actuator UI to reveal its real power, check it out! :) 2009-08-29 14:53:00 +00:00
3080a62733 Grease Pencil UI - Small fixes for the toggles (icons working correctly now) 2009-08-29 11:48:38 +00:00
8930a4fd33 Grease Pencil: UI (i.e. Panel) for Settings
Restored the UI for access to the GP layers. 

There are still a few minor bugs here:
* Wrong icons on the toggles - even when they're enabled, they only show a single state
* The ID-template doesn't seem to be showing up. Dunno what's going wrong there...
2009-08-29 06:50:32 +00:00
f46f6dc7ba Grease Pencil: Toolbar Compatability Fixes
* When starting Grease Pencil from the toolbar, strokes are now started only when a click-drag begins. 

* Made the 'straight-lines' option an RNA property for the operator

* Added an exec() callback and relevant stroke-collection stuff so that interactive redo/changing settings can work. 
WARNING: this is highly unstable here - keeps crashing though I cannot determine the cause yet.
2009-08-29 01:54:10 +00:00
beee5161a9 UI for sound (un)packing. 2009-08-28 22:04:37 +00:00
17fc83e537 Error in last commit. 2009-08-28 21:54:41 +00:00
77c587a825 2.5 Paint:
* Removed the BKE_sculpt file and moved it's contents (basically just the sculpt session struct) to BKE_paint
2009-08-28 21:47:11 +00:00
03b3d2cb79 Sound packing/unpacking operators. 2009-08-28 21:47:05 +00:00
99eae3d93a SVN maintenance. 2009-08-28 21:31:13 +00:00
6f4e0e8e54 2.5 Paint:
* Cleaned up some vertex paint code. Reduces code duplication a bit.
2009-08-28 21:07:55 +00:00
6f80bff0e2 2.5: fix bug in ID property loading, which also loading python
RNA collections saves as ID properties.
2009-08-28 20:51:30 +00:00
a179d16550 Moved unpack_method_items to the right place. 2009-08-28 20:41:12 +00:00
9781320716 Add Makefile for sound ops. 2009-08-28 15:54:15 +00:00
9e7b276dba Sequence sound was raising a python exception with crop and offset buttons.
renamed RNA properties.
 x_offset, y_offset -> offset_x, offset_y, this order is more common in rna.
 render.border ->  render.use_border
 render.placeholders -> render.use_placeholder
 render.no_overwrite -> render.use_overwrite
2009-08-28 15:03:49 +00:00
9ea58be54e - povray and ply work now.
Again, please try not to break scripts - at least grep the release dir for the names you change.

- rna material property rename
  gloss_amount -> gloss_factor, since its from 0.0 to 1.0, prefix factor is used on other material settings.
  reflectivity -> reflect_factor
2009-08-28 14:25:17 +00:00
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
d7656684e2 Quick fix for scons (untested though :/). 2009-08-28 12:38:59 +00:00
6a8020b9c6 First try in sound UI for the sequencer. 2009-08-28 12:27:29 +00:00
3ac11df33b First try of sound operators, untested. 2009-08-28 11:13:45 +00:00
d7bf9688ac fix for crash when a parent compound object didn't get a physics controller.
also show this in the UI.
2009-08-27 23:29:07 +00:00
9c66deb47a SVN maintenance. 2009-08-27 20:37:50 +00:00
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
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
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
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
12a0f2c098 Fix for sounds with relative paths not being loaded correctly. 2009-08-27 09:52:41 +00:00
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
324b3fbe74 - BGE crash fix when casting a ray to the same location as the object from python.
- Incorrect Mathutils vector docstrings.
- last rayshade commit had an incomplete comment.
2009-08-27 06:55:54 +00:00
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
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
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
a3bc7f3d1d BGE shape key actuator working, though only tried a simple testcase. 2009-08-26 20:06:16 +00:00