Bug 101676 - Photons are not saved correctly
Summary: Photons are not saved correctly
Status: RESOLVED FIXED
Alias: None
Product: kpovmodeler
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.1.1
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Zehender
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-17 10:47 UTC by hans mayer
Modified: 2005-05-28 10:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hans mayer 2005-03-17 10:47:09 UTC
Version:           1.1.1 (using KDE KDE 3.3.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

1. If you save a scene with photons passthrough enabled and later on you load that file again, the passthrough is not enabled anymore. 
2. If you change the target or passthrough setting under photons, the Apply button stays inactive.
Comment 1 Andreas Zehender 2005-05-28 10:18:12 UTC
SVN commit 418958 by azehende:

fixed serialization of spacing_multi and pass_through
BUG: 101676

 M  +3 -3      pmphotons.cpp  


--- trunk/KDE/kdegraphics/kpovmodeler/pmphotons.cpp #418957:418958
@@ -114,12 +114,12 @@
 void PMPhotons::readAttributes( const PMXMLHelper& h )
 {
    m_target = h.boolAttribute( "target", true );
-   m_spacingMulti = h.doubleAttribute( "spacingMulti", spacingMultiDefault );
+   m_spacingMulti = h.doubleAttribute( "spacing_multi", spacingMultiDefault );
    m_refraction = h.boolAttribute( "refraction", false );
    m_reflection = h.boolAttribute( "reflection", false );
    m_collect = h.boolAttribute( "collect", true );
-   m_passThrough = h.boolAttribute( "passThrough", false );
-   m_areaLight = h.boolAttribute( "areaLight", false );
+   m_passThrough = h.boolAttribute( "pass_through", false );
+   m_areaLight = h.boolAttribute( "area_light", false );
 }
 
 void PMPhotons::setTarget( bool t )